Skip to content

Commit

Permalink
Update player_performance.py
Browse files Browse the repository at this point in the history
typo fix min_leaf_samples to min_samples_leaf
  • Loading branch information
vpingale077 authored Mar 21, 2024
1 parent be4033f commit 7c8337f
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_estimators'],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 7c8337f

Please sign in to comment.