stdlib-js / stdlib-js/stdlib

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

Aperta Adatta ai principianti
#13,359 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Machine Learning
Lingua principale
JavaScript
Stelle
6k
Fork
1.3k
Merge medio
1g 3h
PR unite (30g)
611

Descrizione

### Description

In continuation to this conversation [#13333](https://github.com/stdlib-js/stdlib/pull/13333#discussion_r3534668720), 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

```shell

```

### Version

_No response_

### Environments

Node.js

### Browser Version

_No response_

### Node.js / npm Version

_No response_

### Platform

_No response_

### Checklist

- [x] Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [x] Searched for existing issues and pull requests.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
machine-learning
Tipo di issue
Refactoring
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.