Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding SMAPE and MAPE loss functions in Machine Learning #13311

Open
Labels
enhancementThis PR modified some existing files
@VedanshTyagi

Description

@VedanshTyagi

Feature Description

I would like to add SMAPE and MAPE loss functions to the loss_functions.py file in Machine Learning folder.

SMAPE

SMAPE (Symmetric Mean Absolute Percentage Error) measures forecast accuracy by comparing the absolute difference between predicted (𝐹t) and actual (At) values to their average.
It is given by:
$$SMAPE=\frac{100%}{​n} \sum_{t=1}^{n} \frac{|Ft - At|}{(|At| + |Ft|)/2} $$

MAPE

MAPE (Mean Absolute Percentage Error) measures forecast accuracy by expressing the average absolute difference between predicted (𝐹t) and actual (At) values as a percentage of the actual values.
It is given by:
$$SMAPE=\frac{100%}{​n} \sum_{t=1}^{n} |\frac{Ft - At}{At }| $$

Benefits

Machine learning models which predict continuous values like price of a house heavily use these loss functions to learn weights and biases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis PR modified some existing files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp