Tag : machine-learning

I’m working on a machine learning project, and my dataset contains variables about social, demographic and economic aspects of 218 countries, ranging from 1960 to 2022. The target variable is a binary variable (Yes or No) that represents if the country has had at least one attempt of coup d’etat in a specific year.
My question is: what are the best classification models for multi-level..

Read more

I have two class of data. I want to separate their features that is strong wind and weak wind and I have two variables and a specific threshold that can be used to separate the features but I want to train a model and want that if the data changes with time, the threshold for wind to separate also should adapt accordingly.
Can anyone suggest on this which machine learning model should be more focused and how the dynamic threshold can be pre..

Read more

I have this code where I don’t understand where the error is when I calculate the cross_val_score.
You can find the code at the end.
When I insert X and Y into cross_val_score I get this output= [-1.04310278e+25 -9.02663688e-01 -5.58849445e-01 -4.67666181e-01
-5.31695826e-01 -5.38521348e-01 -4.88145909e-01 -9.43066823e-01
-8.05226210e-01 -1.0890764..

Read more

Read more

I’m using the MAPIE Python library for conformal predictions. In the MapieClassifier I choose method='score'. When alpha is small (between 1% and 5%) I get non empty prediction sets. However when I look at a full range of alphas from 1% to 99% (e.g. alphas = np.arange(0.01,1.00,0.01)) the average number of classes in the prediction sets gradually go down to zero, despite the fact that in C. Molnar’s book Introduction To Conformal Prediction With Python (2023) p.27 it is stated that « A prediction set – for multi-class tasks – is a set of one or more classes. », i.e. it’s a non empty subset of the set of target modalities. I used a default XGBoost model on two classification datasets and got this phenomenon of empty prediction sets with big alphas, one of which was the Dry Bean dataset mentioned in Molnar’s..

Read more