
# Studium przypadku do rozdziału 2., Obiekty w Pythonie

## Widok logiczny

## Próbki i ich stany

## Próbki - zmiany stanów

```python
>>> from model import Sample
>>> s2 = Sample(
...     sepal_length=5.1, sepal_width=3.5, petal_length=1.4, petal_width=0.2, species="Iris-setosa")
>>> s2
KnownSample(sepal_length=5.1, sepal_width=3.5, petal_length=1.4, petal_width=0.2, species='Iris-setosa')
>>> s2.classification = "wrong"
>>> s2
KnownSample(sepal_length=5.1, sepal_width=3.5, petal_length=1.4, petal_width=0.2, species='Iris-setosa', classification='wrong')

```

## Klasa hiperparametru

```python

>>> class TrainingData:
...     pass
>>> td_1 = TrainingData()

```

```python

>>> from weakref import ref
>>> b = ref(td_1)

```

```python

>>> type(b)
<class 'weakref'>

```

```python

>>> b() == td_1
True

```

```python

>>> del td_1
>>> b() is None
True

```

## Odpowiedzialności

## Klasa danych uczących

