How can I perform a classification with a custom function?

5 ビュー (過去 30 日間)
Sannsch
Sannsch 2013 年 8 月 28 日
I plotted two data sets on a two-dimensional space. Imagine a scatterplot with points that can either be 'x' or 'o'.
I want to compute and draw a decision function, which is given except for one parameter b, simplified: y = ln(b * exp(-6x+7) -b)/10 The decision function with the ideal b should divide the scatterplot into 'x' and 'o' points and minimize the error.
As my function is neither linear nor quadratic I would like to know how I can use my custom ln function.

採用された回答

Sannsch
Sannsch 2013 年 8 月 28 日
Thank you for the tip. I decided to have another look at the constraints and to express them as a minimax problem. Once I have the optimal b I have the resulting function and can just draw it.

その他の回答 (1 件)

Image Analyst
Image Analyst 2013 年 8 月 28 日
How about using SVM?

カテゴリ

Help Center および File ExchangeDesign of Experiments (DOE) についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by