Różnice między wybraną wersją a wersją aktualną.
Poprzednia rewizja po obu stronachPoprzednia wersjaNowa wersja | Poprzednia wersja | ||
notatki:studianoteaptaszniml [2025/05/07 19:03] – administrator | notatki:studianoteaptaszniml [2025/05/16 17:27] (aktualna) – administrator | ||
---|---|---|---|
Linia 1: | Linia 1: | ||
- | ======= | + | ======= ML i sieci neuronowe: Wstęp======= |
- | ====== Wprowadzenie do Pythona ====== | ||
- | |||
- | ==== Typy proste ==== | ||
- | |||
- | ==== Typy zlożone ==== | ||
- | |||
- | <code python> | ||
- | 6*7 | ||
- | </ | ||
- | |||
- | < | ||
- | 42 | ||
- | </ | ||
- | |||
- | <code python> | ||
- | _ | ||
- | </ | ||
- | |||
- | < | ||
- | 42 | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm=_ | ||
- | print(zm, | ||
- | </ | ||
- | |||
- | < | ||
- | 42 <class ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm.__dir__() | ||
- | </ | ||
- | |||
- | < | ||
- | [' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm=7*6.4 | ||
- | print(zm, | ||
- | </ | ||
- | |||
- | < | ||
- | 44.800000000000004 <class ' | ||
- | </ | ||
- | |||
- | ====== Typy złożone ====== | ||
- | |||
- | <code python> | ||
- | #Lista | ||
- | </ | ||
- | |||
- | <code python> | ||
- | lista=list() | ||
- | print(lista, | ||
- | </ | ||
- | |||
- | < | ||
- | [] <class ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | lista.append(' | ||
- | print(lista, | ||
- | </ | ||
- | |||
- | < | ||
- | [' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | lista=[1, | ||
- | print(lista, | ||
- | </ | ||
- | |||
- | < | ||
- | [1, 2, 3, ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | lista[3] | ||
- | </ | ||
- | |||
- | < | ||
- | ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | #krotki (tuple) | ||
- | |||
- | zm=tuple(lista) | ||
- | print(zm, | ||
- | zm. | ||
- | </ | ||
- | |||
- | < | ||
- | (1, 2, 3, ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | print(zm) | ||
- | zm[4].append(' | ||
- | print(zm) | ||
- | </ | ||
- | |||
- | < | ||
- | (1, 2, 3, ' | ||
- | (1, 2, 3, ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm[2]=5 | ||
- | </ | ||
- | |||
- | < | ||
- | --------------------------------------------------------------------------- | ||
- | |||
- | TypeError | ||
- | |||
- | Cell In[20], line 1 | ||
- | ----> 1 zm[2]=5 | ||
- | |||
- | |||
- | TypeError: ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | # typ słownikowy | ||
- | |||
- | zm=dict() | ||
- | print(zm, | ||
- | </ | ||
- | |||
- | < | ||
- | {} <class ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm[' | ||
- | |||
- | zm[(1, | ||
- | |||
- | print(zm) | ||
- | </ | ||
- | |||
- | < | ||
- | {' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm[' | ||
- | print(zm) | ||
- | </ | ||
- | |||
- | < | ||
- | {' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm[(1,2)] | ||
- | </ | ||
- | |||
- | < | ||
- | 'Nie wiem co to jest' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm[1] | ||
- | </ | ||
- | |||
- | < | ||
- | --------------------------------------------------------------------------- | ||
- | |||
- | KeyError | ||
- | |||
- | Cell In[26], line 1 | ||
- | ----> 1 zm[1] | ||
- | |||
- | |||
- | KeyError: 1 | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm=" | ||
- | |||
- | for nr,słowo in enumerate(zm.split(' | ||
- | print(nr, | ||
- | print(" | ||
- | print(" | ||
- | </ | ||
- | |||
- | < | ||
- | 0 Witam | ||
- | ======== | ||
- | 1 wszystkich | ||
- | ======== | ||
- | 2 uczestników | ||
- | ======== | ||
- | 3 kursu | ||
- | ======== | ||
- | Koniec roboty | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm1, | ||
- | |||
- | print(zm1, | ||
- | print(zm2, | ||
- | </ | ||
- | |||
- | < | ||
- | 315 <class ' | ||
- | False <class ' | ||
- | </ | ||
- | |||
- | <code python> | ||
- | zm=45*7, | ||
- | print(zm) | ||
- | </ | ||
- | |||
- | < | ||
- | (315, False) | ||
- | </ | ||
- | |||
- | <code python> | ||
- | import matplotlib.pyplot as plt | ||
- | import numpy as np | ||
- | |||
- | x=np.arange(-20, | ||
- | y=np.sin(x) | ||
- | plt.plot(x, | ||
- | plt.grid() | ||
- | plt.show() | ||
- | </ | ||
- | |||
- | {{output_23_0.png|png}} | ||
- | png | ||
- | |||
- | |||
- | <code python> | ||
- | |||
- | </ | ||
- | |||
- | ======= Spotkanie 2 ======= | ||
====== Wprowadzenie do przetwarzania danych z pakietami numpy i pandas ====== | ====== Wprowadzenie do przetwarzania danych z pakietami numpy i pandas ====== | ||