Ask Your Question

Revision history [back]

OpenCV C++ for decision tree based problems.

I would like to use OpenCV C++ for below problem to forecast whether one will be able to play the game in the given weather conditions using ML Decision tree.

Here are the train and test data sets. Based on this, i want to build a decision tree to predict the data for test data

Train Dataset (train.csv) Outlook Temperature Humidity Windy Play Sunny Hot High False No Rainy Mild High False Yes Sunny Cool Normal False Yes Overcast Hot High False Yes Rainy Mild High False Yes Overcast Hot Normal False Yes

Test Dataset (test.csv) Id Outlook Temperature Humidity Windy 1 Sunny Mild Normal True 2 Sunny Mild High False 3 Overcast Cool Normal True 4 Rainy Mild High True

The Prediction File (user_prediction.csv) would looks like. Id Play 1 Yes 2 Yes 3 No 4 No

I want to know can i use openCV c++ for this kind of problems? Is openCV used only for Image and Video ML? Please let me know how to solve above problem using openCV C++ Decision tree.

Appreciate sample code to solve above problem. Problem details you can find in - https://www.hackerearth.com/blog/developers/machine-learning-auto-evalaution/

click to hide/show revision 2
None

updated 2019-12-22 02:49:50 -0600

berak gravatar image

OpenCV C++ for decision tree based problems.

I would like to use OpenCV C++ for below problem to forecast whether one will be able to play the game in the given weather conditions using ML Decision tree.

Here are the train and test data sets. Based on this, i want to build a decision tree to predict the data for test data

Train Dataset (train.csv) (train.csv)

Outlook Temperature Humidity    Windy   Play
Sunny   Hot     High    False   No
Rainy   Mild    High    False   Yes
Sunny   Cool    Normal  False   Yes
Overcast    Hot High    False   Yes
Rainy   Mild    High    False   Yes
Overcast    Hot Normal  False   Yes

Yes

Test Dataset (test.csv) (test.csv)

Id  Outlook Temperature Humidity    Windy
1   Sunny   Mild    Normal  True
2   Sunny   Mild    High    False
3   Overcast    Cool    Normal  True
4   Rainy   Mild    High    True

True

The Prediction File (user_prediction.csv) would looks like. like.

Id  Play
1   Yes
2   Yes
3   No
4   No

No

I want to know can i use openCV c++ for this kind of problems? Is openCV used only for Image and Video ML? Please let me know how to solve above problem using openCV C++ Decision tree.

Appreciate sample code to solve above problem. Problem details you can find in - https://www.hackerearth.com/blog/developers/machine-learning-auto-evalaution/