K-Validation
Verfasst: Donnerstag 27. Januar 2022, 18:08
Hey,
ich brauch Hilfe bei einer Ridge Regression. Und zwar muss ich eine k-Validation programmieren. Unten mal die Aufgabenstellung:
Use the function ”numpy.random.choice” to shuffle your data. Split your shuffled data into 20 sets and write a loop, such that each of the 20 sets acts as validation set once.
Allerdings klappt bei mir das mit dem loop gar nicht. Falls jemand Ideen hat, gerne melden!
ich brauch Hilfe bei einer Ridge Regression. Und zwar muss ich eine k-Validation programmieren. Unten mal die Aufgabenstellung:
Use the function ”numpy.random.choice” to shuffle your data. Split your shuffled data into 20 sets and write a loop, such that each of the 20 sets acts as validation set once.
Allerdings klappt bei mir das mit dem loop gar nicht. Falls jemand Ideen hat, gerne melden!