Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

I am trying to optimize my model with GridSearchCV, using a custom profit function. However, when I Run my code, I end up with the following error message: TypeError: profit_scorer() missing 1 ...
user29348541's user avatar
0 votes
1 answer
88 views

File "generate_scorer_package", line 1 SyntaxError: Non-UTF-8 code starting with '\xea' in file generate_scorer_package on line 2, but no encoding declared; see http://python.org/dev/peps/...
Rahul Tripathi's user avatar
4 votes
1 answer
710 views

Difference between them is not well explained in make_scorer documentation. I observed that if needs_proba or needs_threshold is set to True, scoring function receives pred_proba instead of y_pred. ...
user18492012's user avatar
0 votes
0 answers
87 views

I have a situation where I can dynamically pass some scorers to a grid search object, either in the form of strings (=accuracy) as well as custom scorers, created via make_scorer where the parameter ...
Asher11's user avatar
  • 1,355
0 votes
1 answer
389 views

I'm trying to make a classifier with XGBoost, I fit it with RandomizedSearchCV. Here is the code of my function: def xgboost_classifier_rscv(x,y): from scipy import stats from xgboost import ...
tunned's user avatar
  • 93
0 votes
1 answer
415 views

During the build of lm binay to create scorer doe deepspeech model I was getting the following error again and again subprocess.CalledProcessError: Command '['/content/kenlm/build/bin/build_binary', '-...
Danish Bansal's user avatar
0 votes
0 answers
462 views

I am doing a churn analysis. I used randomcv = RandomizedSearchCV(estimator=clf,param_distributions = params_grid, cv=kfoldcv,n_iter=100, n_jobs=-1, scoring='roc_auc') and ...
Antonio Velazquez Bustamante's user avatar
1 vote
1 answer
571 views

What is check_scoring in sklearn.metrics, how does it work, and what is it its difference with make_scorer?
Pooyan Moradifar's user avatar
0 votes
3 answers
3k views

The official website makes it pretty clear that there is no support for kenlm in Windows. There is a Windows tag at the github repository but it seems to be maintained by few random contributors then ...
Bendemann's user avatar
  • 786
0 votes
1 answer
780 views

I keep getting this error: invalid value encountered in double_scalars: mcc = cov_ytyp / np.sqrt(cov_ytyt * cov_ypyp) Is there something wrong with how I implemented it in a custom-scorer? ...
JonnDough's user avatar
  • 937
2 votes
1 answer
4k views

I want to use cross-validation for calculating specificity. I found code for calculating accuracy, really, f1-score, and precision. but I couldn't found for specificity. for example, the code for f1-...
Naghme Vahabi's user avatar
2 votes
1 answer
4k views

I have a multi-classification problem (with many labels) and I want to use F1 score with 'average' = 'weighted'. Something I do wrong though. Here is my code: from sklearn.metrics import f1_score ...
user8270077's user avatar
  • 5,151