Skip to content

Commit

Permalink
Merge pull request #8 from vpingale077/main
Browse files Browse the repository at this point in the history
RandomForestClassifier typo fix
  • Loading branch information
pankajrawat9075 authored Mar 28, 2024
2 parents 22370b5 + 7c8337f commit 0b53e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/player_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def player_performance(param,player_name,opposition=None,venue=None):
#RandomForestClassifier
elif bowl_best_score[1] == 'rfc':
if classes_bowl > 2:
classifier = RandomForestClassifier(n_estimators=bowl_best_params['n_estiamtors'],criterion=bowl_best_params['criterion'],random_state=42,min_samples_leaf=bowl_best_params['min_leaf_samples'])
classifier = RandomForestClassifier(n_estimators=bowl_best_params['n_estimators'],criterion=bowl_best_params['criterion'],random_state=42,min_samples_leaf=bowl_best_params['min_samples_leaf'])
else:
classifier = RandomForestClassifier(n_estimators=bowl_best_params['n_estimators'],criterion=bowl_best_params['criterion'],random_state=42,min_samples_leaf=1)
classifier = classifier.fit(bowl_features,bowl_targets)
Expand Down

0 comments on commit 0b53e56

Please sign in to comment.