1
$\begingroup$

For example, I want to predict a probability of whether raining tomorrow, and I can't get the prob. of cloudy or sunny...etc day.

I only get events(attributes of weather) like temperature, humidity, sunny interval, rainy interval...etc.

Train data:
temp. -> 80F
humidity -> 30%
sunny interval -> 5hr
rainy interval -> 0hr

Label: prob. of rainy tomorrow is 20%

Test data example:
temp. -> 90F
humidity -> 10%
sunny interval -> 10hr
rainy interval -> 0hr

I only can get the prob. of rainy day, so I can't use classification algo.

Like above, I want to predict the prob. of rainy tomorrow. I'm not a professional in ML knowledge. I survey many sources and thought the most possible algorithm of ML maybe is regression!?(Cuz it can give me a value like linear regression).

But I don't know is there any other algorithms can help me to predict a probability(also can say I want to predict a value)?

| improve this question | | | | |
$\endgroup$
1
$\begingroup$

Most of the classification algorithms can return a probability or a similar measure.

Usually, you don't get black or white, but nuances of grey, and then based on a threshold, you select one or the other answer.

| improve this answer | | | | |
$\endgroup$
  • $\begingroup$ I try to not use classification algo because I only can get prob. of rainy day. $\endgroup$ – code_worker Oct 25 '18 at 10:08
  • $\begingroup$ And at the same time, you get the probability of sunny days. Probabilities sum to 1. $\endgroup$ – Matthieu Brucher Oct 25 '18 at 10:09
  • $\begingroup$ But weather can be cloudy or storm day...etc $\endgroup$ – code_worker Oct 25 '18 at 10:10
  • $\begingroup$ But that's one of your inputs, you want a probability of rain. $\endgroup$ – Matthieu Brucher Oct 25 '18 at 10:12
  • $\begingroup$ I can't get prob. of cloudy or stormy, only get attributes of weather like temperature, sunny time...etc $\endgroup$ – code_worker Oct 25 '18 at 10:21
0
$\begingroup$

Actually, you have it in your keywords already. Look for regression models instead of classification models.

And even then, in most classification models, the last step is often to take the most likely class (with a probability) as the class. Look into the inner workings of the algorithm if you have a successful one. Likely one of the final intermediary results contains the probabilities you look for.

| improve this answer | | | | |
$\endgroup$
  • $\begingroup$ If I have so many days as train data, and every prob. of everyday will be all different. If I use classification algo, the number of classes will be very large(cuz each prob. is different, and prob. will be regarded as a class for classifying). Maybe I need to use regression to get a value. $\endgroup$ – code_worker Oct 25 '18 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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