I have an problem, related to machine learning and which method is used to proceed further?
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have an data with 11 rows and 2 columns in which the single output is the combination of single row and column. As an probability i will get 11x11 outputs.And i need to find the best solution. from the above problem 11x11, i need to find a 1x1 single value as an best solution.
for the above problem, which type of method will be better to achieve the best solution to proceed further.And if possible, please share the link of some examples related to my problem.
2 个评论
Rahul
2022-10-11
Can you please elaborate your problem? What exactly you want to execute? There are various machine learning algorithms for classification. Please share some details about the dataset, the target variable, etc.
John D'Errico
2022-10-25
So just evaluate the function at all 121 combinatinos of values. Then choose the one that makes you happy. Simple loops would suffice, but you can use meshgrid to do some of the work for you.
回答(1 个)
arushi
2024-9-6
I understand that you have a 11x11 matrix and you want to select 1x1 element as the best solution.
One possible approach to find the best solution is to use optimization techniques. For now, you can consider treating the 11x11 output grid as an objective function and use an optimization algorithm to find the maximum or minimum value.
MATLAB provides various optimization functions and tools like “fminsearch”, “fminunc”, “fmincon”, “ga” that you can utilize for this purpose. The choice of the specific optimization algorithm depends on the nature of your problem, constraints, and specific requirements.
Another possible approach is to use Machine Learning algorithms to find the best solution from 11x11 grid, you can Treat the problem as a regression task, where you train a model to predict the single value output based on the 11x11 input grid. You can use algorithms such as linear regression, decision trees, random forests, or gradient boosting.
Please find links to below documentation which I believe will help you for further reference.
- Optimization toolbox: https://www.mathworks.com/help/optim/
- fminsearch: https://www.mathworks.com/help/matlab/ref/fminsearch.html
- fminunc: https://www.mathworks.com/help/optim/ug/fminunc.html
- ga: https://www.mathworks.com/help/gads/ga.html
- Statistics and Machine Learning Toolbox: https://www.mathworks.com/help/stats/
- Linear Regression: https://www.mathworks.com/help/matlab/data_analysis/linear-regression.html
- Decision Trees: https://www.mathworks.com/help/stats/decision-trees.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!