I have an problem, related to machine learning and which method is used to proceed further?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Rahul
el 11 de Oct. de 2022
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
el 25 de Oct. de 2022
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.
Respuestas (1)
arushi
el 6 de Sept. de 2024
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 comentarios
Ver también
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!