• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

How is ML algorithm chosen when most can be used for both classification as well as regression use

 
Ranch Hand
Posts: 2429
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When we have a machine learning model to be built for a use case ,one of the steps is to choose an algorithm. An algorithm has to be chosen out of the various available machine learning algorithms like Decision Tree, Random Forest,Naive Bayes,Timeseries,Neural Networks etc. How is ML algorithm chosen when most can be used for both classification as well as regression use cases ?

For instance ,for our use case we see whether it is a classification or a regression problem. If it is regression then whether it is linear or logistic regression .
While this may be easy to determine, next we need to choose an algorithm for it .Suppose out use case is a case of classification problem. Then decision tree may be a choose for classification problems but then decision trees are used for regression as well. Or say our case is of regression and we may choose a Random Forest but this algorithm is used in case of classification use cases as well.

How is the selection done and how does determining whether the use case is of Regression or Classification help ?
Thanks

 
Greenhorn
Posts: 17
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you want to predict a number? For example, the price of a car. Then it's a regression problem

Do you want to predict a class? For example, is an email spam or not? Then it's a classification problem
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic