O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

cost function & loss function

pravin baste Machine Learning Business Analyst Inglês 10 flashcards

cost function & loss function

Flashcards do conjunto (10)

  1. 1what is the cost function and loss function....?????‘Loss’ in Machine learning helps us understand the difference between the predicted value & the actual value. The Function used to quantify this loss during the training phase in the form of a single real number is known as the “Loss Function”. These are used in those supervised learning algorithms that use optimization techniques. Notable examples of such algorithms are regression, logistic regression, etc. The terms cost function & loss function are analogous.
    Loss function: Used when we refer to the error for a single training example.
    Cost function: Used to refer to an average of the loss functions over an entire training dataset.
  2. 2*why* use a cost function?It takes both predicted outputs by the model and actual outputs and calculates how much wrong the model was in its prediction. It outputs a higher number if our predictions differ a lot from the actual values. As we tune our model to improve the predictions, the cost function acts as an indicator of how the model has improved. This is essentially an optimization problem. The optimization strategies always aim at “minimizing the cost function”.
  3. 3Types of the cost function..?Regression cost Function
    Binary Classification cost Functions
    Multi-class Classification cost Functions
  4. 4Regression cost Function:Regression models deal with predicting a continuous value for example salary of an employee, price of a car, loan prediction, etc. A cost function used in the regression problem is called “Regression Cost Function”. They are calculated on the distance-based error as follows:
    Error = y-y’
    Where,
    Y – Actual Input
    Y’ – Predicted output
  5. 5Other most used regression cost functions..??1.1 Mean Error (ME)
    1.2 Mean Squared Error (MSE)
    1.3 Mean Absolute Error (MAE)
  6. 6Mean Error .... ???Mean Error .... ???
  7. 7Mean Squared Error ...??Mean Squared Error ...??
  8. 8Mean Absolute ErrorMean Absolute Error
  9. 92. Cost functions for Classification problemsCost functions used in classification problems are different than what we use in the regression problem. A commonly used loss function for classification is the cross-entropy loss. Let us understand cross-entropy with a small example. Consider that we have a classification problem of 3 classes as follows.
    Class(Orange,Apple,Tomato)
    The machine learning model will give a probability distribution of these 3 classes as output for a given input data. The class with the highest probability is considered as a winner class for prediction.
    Output = [P(Orange),P(Apple),P(Tomato)]
    The actual probability distribution for each class is shown below.
    Orange = [1,0,0]
    Apple = [0,1,0]
    Tomato = [0,0,1]
    2. Cost functions for Classification problems
  10. 102.1 Multi-class Classification cost Functions

Informações

Descrição
Business Analyst Machine Learning FlashCards sobre cost function & loss function, criado por pravin baste em 29-10-2021.
Criado por
pravin baste
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?