{"id":103,"date":"2025-09-24T23:12:22","date_gmt":"2025-09-24T21:12:22","guid":{"rendered":"http:\/\/python-ai.pl\/?p=103"},"modified":"2025-09-24T23:12:22","modified_gmt":"2025-09-24T21:12:22","slug":"%f0%9f%a7%a0-deep-learning-sieci-neuronowe","status":"publish","type":"post","link":"https:\/\/python-ai.pl\/?p=103","title":{"rendered":"\ud83e\udde0 Deep Learning &#8211; Sieci Neuronowe"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">Poznamy zaawansowane techniki Deep Learning &#8211; sieci neuronowe z TensorFlow\/Keras, kt\u00f3re s\u0105 podstaw\u0105 nowoczesnej sztucznej inteligencji i ChatGPT.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u015acie\u017cka rozwoju:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Python \u2192 Pandas\/NumPy<\/li>\n\n\n\n<li>Scikit-learn \u2192 ML<\/li>\n\n\n\n<li>TensorFlow\/PyTorch \u2192 DL<\/li>\n\n\n\n<li>Praktyczne projekty<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Wprowadzenie do Deep Learning:<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"271\" src=\"http:\/\/python-ai.pl\/wp-content\/uploads\/2025\/09\/image-6.png\" alt=\"\" class=\"wp-image-104\" srcset=\"https:\/\/python-ai.pl\/wp-content\/uploads\/2025\/09\/image-6.png 814w, https:\/\/python-ai.pl\/wp-content\/uploads\/2025\/09\/image-6-300x100.png 300w, https:\/\/python-ai.pl\/wp-content\/uploads\/2025\/09\/image-6-768x256.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Kod Python &#8211; Deep Learning z TensorFlow:<\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import tensorflow as tf\nfrom tensorflow import keras\nfrom sklearn.preprocessing import StandardScaler\n\n# Przygotowanie danych dla Deep Learning\nscaler = StandardScaler()\nX_scaled = scaler.fit_transform(X)\n\n# Budowa sieci neuronowej\nmodel = keras.Sequential([\n    keras.layers.Dense(64, activation=&#39;relu&#39;, input_shape=(2,)),\n    keras.layers.Dropout(0.2),\n    keras.layers.Dense(32, activation=&#39;relu&#39;),\n    keras.layers.Dropout(0.2),\n    keras.layers.Dense(16, activation=&#39;relu&#39;),\n    keras.layers.Dense(1)  # Output layer\n])\n\n# Kompilacja modelu\nmodel.compile(\n    optimizer=&#39;adam&#39;,\n    loss=&#39;mse&#39;,\n    metrics=[&#39;mae&#39;]\n)\n\n# Trenowanie\nhistory = model.fit(\n    X_train_scaled, y_train,\n    epochs=100,\n    batch_size=32,\n    validation_split=0.2,\n    verbose=0\n)\n\n# Ewaluacja\ndl_pred = model.predict(X_test_scaled)\ndl_r2 = r2_score(y_test, dl_pred)\ndl_rmse = np.sqrt(mean_squared_error(y_test, dl_pred))\n\nprint(f&quot;Deep Learning - R\u00b2: {dl_r2:.3f}, RMSE: {dl_rmse:.0f}&quot;)<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Poznamy zaawansowane techniki Deep Learning &#8211; sieci neuronowe z TensorFlow\/Keras, kt\u00f3re s\u0105 podstaw\u0105 nowoczesnej sztucznej inteligencji i ChatGPT. \u015acie\u017cka rozwoju: Wprowadzenie do Deep Learning: Kod Python &#8211; Deep Learning z TensorFlow:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28,4],"tags":[29,6],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-ai","category-kurs","tag-ai","tag-kurs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/python-ai.pl\/index.php?rest_route=\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/python-ai.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-ai.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-ai.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-ai.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":1,"href":"https:\/\/python-ai.pl\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/python-ai.pl\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/python-ai.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-ai.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-ai.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}