<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Python'da oddiy neyron tarmoqni qanday yozish mumkin?<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Python-da oddiy neyron tarmoqlarini yozish uchun TensorFlow-ga asoslangan Keras kutubxonasidan foydalanish mumkin. Bu neyron tarmoqlarni yaratish va o'qitishning oddiy va qulay usuli. Mana oddiy neyron tarmoqning misoli, u MNIST ma'lumotlar to'plamidagi raqamlarni tasniflaydi: ``python from keras.models import Sequential from keras.layers import Dense, Flatten from keras.datasets import mnist from keras.utils import to_categorical # Ma'lumotlar yuklash (x_train, y_train), (x_test, y_test) =ist.load_data) # Ma'lumotlar o'zgarishi x_train = x_train.(((((((((((((((((((((<|eot_id|>