[BUG]: usage of camelcase for loss functions in `ml/incr/*`

Open Beginner friendly
#13,359 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript

Research direction

Start by inspecting the ml/incr/binary-classification and ml/incr/sgd-regression package entry points and searching their references for the four camelCase loss-function names. Rename each to its kebab-case form and verify that all package usage and tests consistently use modified-huber, squared-hinge, epsilon-insensitive, and squared-error.

Written by the indexing model from the issue text.

Description

Machine Learning
Description

In continuation to this conversation #13333, we noticed that the packages ml/incr/binary-classification and ml/incr/sgd-regression follow camelCase for mentioning loss functions, where as the current convention is to use kebab-case.

Expected outcome is to refactor all the loss functions from using camelcase to kebabcase.

Related Issues

No response

Questions

No.

Demo

No response

Reproduction

No response

Expected Results

ml/incr/binary-classification

  • modifiedHuber -> modified-huber
  • squaredHinge -> squared-hinge

ml/incr/sgd-regression

  • epsilonInsensitive -> epsilon-insensitive
  • squaredError -> squared-error
Actual Results

Version

No response

Environments

Node.js

Browser Version

No response

Node.js / npm Version

No response

Platform

No response

Checklist
  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
Dominant language
JavaScript
Stars
6k
Forks
1.3k
Avg merge
1d 4h
Merged PRs (30d)
551

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stdlib-js/stdlib

All issues in stdlib-js/stdlib

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.