Skip to content

Commit

Permalink
chore: update dependencis
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Oct 16, 2024
1 parent 60ec5da commit 3e6cddb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yml

This file was deleted.

8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import cheminfo from 'eslint-config-cheminfo-typescript';

export default [
...cheminfo,
{
rules: {}
}
]
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
},
"homepage": "https://github.com/mljs/regression-polynomial#readme",
"devDependencies": {
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^8.56.0",
"eslint-config-cheminfo-typescript": "^12.4.0",
"ml-spectra-processing": "^14.5.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"@vitest/coverage-v8": "^2.1.3",
"eslint": "^9.12.0",
"eslint-config-cheminfo-typescript": "^16.0.0",
"ml-spectra-processing": "^14.6.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
},
"dependencies": {
"cheminfo-types": "^1.7.3",
"ml-matrix": "^6.11.0",
"cheminfo-types": "^1.8.0",
"ml-matrix": "^6.12.0",
"ml-regression-base": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion src/__tests__/test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Polynomial regression', () => {
it('degree 5', () => {
const x = [50, 50, 50, 70, 70, 70, 80, 80, 80, 90, 90, 90, 100, 100, 100];
const y = [
3.3, 2.8, 2.9, 2.3, 2.6, 2.1, 2.5, 2.9, 2.4, 3.0, 3.1, 2.8, 3.3, 3.5, 3.0,
3.3, 2.8, 2.9, 2.3, 2.6, 2.1, 2.5, 2.9, 2.4, 3, 3.1, 2.8, 3.3, 3.5, 3,
];
const degree = 5;
const regression = new PolynomialRegression(x, y, degree);
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export class PolynomialRegression extends BaseRegression {
* @param y - dependent or response variable
* @param degree - degree of the polynomial regression, or array of powers to be used. When degree is an array, intercept at zero is forced to false/ignored.
* @example `new PolynomialRegression(x, y, 2)`, in this case, you can pass the option `interceptAtZero`, if you need it.
* @param options

Check warning on line 21 in src/index.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "options" description
* @example `new PolynomialRegression(x, y, [1, 3, 5])`
* Each of the degrees corresponds to a column, so if you have them switched, just do:
* @example `new PolynomialRegression(x, y, [3, 1, 5])`
*
* @param options.interceptAtZero - force the polynomial regression so that f(0) = 0
*/
constructor(
Expand Down Expand Up @@ -129,6 +129,7 @@ export class PolynomialRegression extends BaseRegression {
* @param y - dependent or response variable
* @param degree - degree of the polynomial regression
* @param options.interceptAtZero - force the polynomial regression so that $f(0) = 0$

Check warning on line 131 in src/index.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

@param path declaration ("options.interceptAtZero") root node name ("options") does not match previous real parameter name ("degree")
* @param options

Check warning on line 132 in src/index.ts

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Missing JSDoc @param "options" description
*/
function regress(
x: NumberArray,
Expand Down

0 comments on commit 3e6cddb

Please sign in to comment.