How to use Machine Learning Algorithms in classification for categorical problem?

1 次查看(过去 30 天)
I have a matrix with 100*100 data points. I need to apply ML for classification of (Yes, there is an event to be 1, or No, there is no event 0). In addirion, I should only label 7500 (as 1 or 0) (75%) for training and no adding 1 or 0 for the remainder 2500 (25%) for testing?
Which models I should try? If I need to do comparative study, which algorithms I should try?
  5 个评论
the cyclist
the cyclist 2023-11-17
This is helpful information, but it is still not clear how to make this into a classification problem. Let's modify my small example:
M = [10 20 30 40 50;
20 35 45 55 60;
25 40 60 75 65;
25 20 30 40 50;
20 5 15 35 45];
There are two points that are "local minimum" points: The value 10 at location (1,1), and the value 5 at location (5,2).
I also have a local maximum: the value 75 at location (3,4).
Is the first step to find the local minima? (That is not a machine learning problem.)
Mohamed
Mohamed 2023-11-17
编辑:Mohamed 2023-11-17
In the attached image, you can see that at the location of p1 and p2 the values are high compared to the surroundings. The target is high related to the location of the objects and low no objects present.
I am available for more details @the cyclist

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2023-11-17
In the 100x100 matrix, is one of the columns the response (ground truth or known true value), and the other 99 columns are the predictors? Or do you have another vector for the response values?
Have you tried the Classification Learner app on the Apps tab of the tool ribbon? You should. You can then try a wide variety of different classification methods and pick the best one and export code for it.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
  2 个评论
Mohamed
Mohamed 2023-11-17
it is 100*100 matrix (as data points in map 100 in x and 100 in y). each value is related to location objects. imagine that there are some objects buried in this map (100*100 to scale) and at (200,250) there is an object and at differnt location in x and y there is another object. The presence of these objects will be reflected in the data measured at each data points, so over the object directly, the value is high and away is very low. Therefore, I need to give the location of the ground tructh (object is present 1 and no object present in each location 0), then I need to train this categorical problem and test on other portions of the data.
Can you suggest which will be better random forest or SVM or what?
I will be happy to hear your recommendations.
Image Analyst
Image Analyst 2023-11-18
I agree with @the cyclist - you just need to examine the image to find the peak(s), and the object(s) will be at the peak location.

请先登录,再进行评论。

更多回答(1 个)

the cyclist
the cyclist 2023-11-17
Based on your replies to my comments, this does not seem like a machine learning classification problem to me. It seems like a peak-finding problem.
Take a look at this question/answer from the MathWorks support team, about 2-dimensional peak-finding. Maybe it will help you.
  1 个评论
Mohamed
Mohamed 2023-11-17
My target is to find the location in x, y for any map of physical measurements to detect features. This example is simple. Some difficult examples has may peaks trends intersects with each other.
Also, there are different maps for the same locations; one of them is at negative values, the object is located. So how can make the algorithm from these two data sets and predict the location of objects.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Classification Ensembles 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by