I am a Python beginner, just getting into machine learning and need advice on the approach i should use for my problem.

Here is an example of my data-set. enter image description here

Where the RESULT is a corresponding INDEX in each VALUES array and every row is a separate array, i need to find the probability of each index of an array being the RESULT based on its configuration, where the overall configuration and distribution is most important rather than any individual value.

  • $\begingroup$ Hi. Welcome to the DataScience SE. Can you edit the title to be more relevant to the question. Currently, it's a bit confusing and broad :) $\endgroup$
    – Dawny33
    Commented Jan 15, 2017 at 14:24

1 Answer 1


You are looking at a Classification problem.

Logistic regression, Decision trees, SVM. Any of the above can solve the job for you. But selecting the best model depends upon how good it is able to predict the test set. Use cross-validations and see which model can give you better accuracy. So split you test and train set accordingly. You don't expect the model to predict, if you haven't trained it. See stratified sampling for starters.

Though your predictors might be categorical or ordinals, they can be treated as numericals.

You have built in functions like predict_proba to find class probability. The references for this can be found in above links. But go through how they work and what is the policy for selecting best plane in any classification, so that you don't feel like you are using a black-box. Since you are saying that you are a beginner, pandas will be a very useful module for reading data into dataframes and mending it as you like.

Hope this clears something.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.