I need to create a machine that will predict if a person survives in the Titanic or not. There are to files, the training file and the testing file. I never used Kmeans before so I used parameters that I found in tutorials
clf = KMeans(n_clusters=10)
acc_scorer = make_scorer(accuracy_score)
grid_obj = GridSearchCV(clf,parameters, scoring=acc_scorer)
grid_obj = grid_obj.fit(X_train, y_train)
clf = grid_obj.best_estimator_
clf.fit(X_train, y_train)
I get an error message:
ValueError: Invalid parameter criterion for estimator KMeans(algorithm='auto', copy_x=True, init='k-means++', max_iter=300, n_clusters=10, n_init=10, n_jobs=None, precompute_distances='auto',
random_state=None, tol=0.0001, verbose=0). Check the list of available parameters withestimator.get_params().keys().
clf = KMeans(n_clusters=10)? - rotem tal