4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Pythonic Tutorial 17-18

Pythonic on GitHub
Pythonic Tutorial Part 1-6
Pythonic Tutorial Part 7-11
Pythonic Tutorial Part 12-16

17. Support Vector Machine

![](https://cdn.steemitimages.com/DQmYJ9ED4YxUD7UvB59xYKGmZnQ3iRQaRKG5TVWoKZ8DsxG/grafik.png) SVM element in the element bar
![](https://cdn.steemitimages.com/DQmTxWqXw3bsxtoqtjDP82ykJJtPR5rhaEmMjJWPf3gfGHw/grafik.png) Support Vector Machine

The Support Vector Machine element let’s you do a binary classification of the input data. The input must be a tuple of sample data and (binary) features ([0,1,1, 0, …]). Based on the selected ratio, the data is broken up into training and evaluation data. The output of this element is a contingency table.

To improve the prediction, the input data should be centered and/or scaled.

You can define a file path (absolute or relative to $HOME) where the resulting model is saved (it’s a pickled Scikit Learn SVC).

Scikit Learn Support Vector Machine

18. Support Vector Machine Prediction

![](https://cdn.steemitimages.com/DQmTbFQBMhyvLj5qqTsHVM2CXghRcGVJy8AS6f2rSgANsHc/grafik.png) SVM Prediction element in the element bar
![](https://cdn.steemitimages.com/DQmfXKRSmac1gZWjc2eCyA8fNfZwvkMdnTaX25L1UKAbyEx/grafik.png) Support Vector Machine Prediction

This element creates a prediction based on the input data and a model. You can specify the absolute or relative (to $HOME) file path to the model. If the input data is a list, you can activate that only the last value within this list gets predicted. This will reduce the CPU utilization if you want to pass in OHLC data regularly.

The output of this element is a Python list of
binary classification ([0, 0, 1, 0, 1, 1] — with just one element when Predict only last value is activated.)

4 upvotes $0.03

Replies (2)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: