DJCordhose / buch-machine-learning-notebooks

Notebooks für das Buch Machine Learning - kurz & gut
Apache License 2.0
64 stars 21 forks source link

Falscher Parameter für Color? #2

Closed cwansart closed 3 years ago

cwansart commented 3 years ago

Wenn ich lokal das komplette Notebook 4 lokal ausführe, bekomme ich bei

fig = plt.figure(1, figsize=(9, 6))

t = np.linspace(-10,10,200) 
plt.plot(t,logf(t),lw=3.,c='k')
plt.xlabel('t')
plt.ylabel('logistic function(t)')

Fehler, weil K nicht definiert ist. Ich habe in den anderen Beispielen geschaut, dort wird k (also kleingeschrieben) verwendet. Damit bekomme ich auch einen Graphen.

Kann sein, dass ich mich irre, da mir noch nicht ganz klar ist, wo k überhaupt herkommt.

DJCordhose commented 3 years ago

auf Colab geht es auch mit dem großen K, ich hab es aber nun auf das kleine k geändert

https://colab.research.google.com/github/djcordhose/buch-machine-learning-notebooks/blob/master/kap4.ipynb#scrollTo=kaRhnDQaj-VJ

cwansart commented 3 years ago

Vielen Dank für die schnelle Antwort!