<jupyter_start><jupyter_text>Evaluation<jupyter_code>model.evaluate(x_data, y_data)

# 2개(loss, accuracy)의 편차<jupyter_output>5/5 [==============================] - 0s 3ms/step - loss: 0.5324 - acc: 0.6667<jupyter_text>Service<jupyter_code>x_data[25], y_data[25]
pred = model.predict([[5. , 3. , 1.6, 0.2]])
pred

# 25번째 데이터를 보니, 1번째 분류일 가능성은 0.3302766, 2번째 분류 0.33684278 ~~
import numpy as np

np.argmax(pred)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2164009111617312, 'fraction_numerical': 0.10478359908883828, 'mean_word_length': 6.096774193548387, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '483287', 'license': 'Apache-2.0', 'n_tokens_mistral': 243, 'n_tokens_neox': 234, 'n_words': 33, 'path': 'iris_classification.ipynb', 'repo_name': 'mmeooo/test_deeplearning', 'size': '439'}