Skip to content
Snippets Groups Projects
Commit 6ddcd515 authored by Jaralus's avatar Jaralus
Browse files

V1

parent a409f723
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import KNeighborsClassifier
#poo
def cross_validation(classifier, features, labels, scoring_metrics):
scores = cross_val_score(classifier, features, labels, cv = 5, scoring = scoring_metrics)
return scores.mean()
......
def main():
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment