# ml-kernel-polynomial

> The polynomial kernel

Latest version **3.0.0** (published 2026-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install ml-kernel-polynomial
pnpm add ml-kernel-polynomial
yarn add ml-kernel-polynomial
bun add ml-kernel-polynomial
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-06-06 |
| First published | 2016-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michaël Zasso |
| Maintainers | stropitek, targos, lpatiny, mljs-bot |
| Keywords | polynomial, kernel, data, mining, datamining, machine, learning |

## Links

- npm: https://www.npmjs.com/package/ml-kernel-polynomial
- Repository: https://github.com/mljs/kernel-polynomial
- Homepage: https://github.com/mljs/kernel-polynomial#readme
- Issues: https://github.com/mljs/kernel-polynomial/issues
- npm.io page: https://npm.io/package/ml-kernel-polynomial

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2026-06-06
- 2.1.0 — 2026-06-06
- 2.0.1 — 2019-06-29
- 2.0.0 — 2016-08-03

## README

# ml-kernel-polynomial

[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]

The polynomial kernel.

## Installation

`$ npm i ml-kernel-polynomial`.

## Usage

### new PolynomialKernel(options)

**Options**:

- `degree` - degree of the polynomial (default: 1).
- `constant` - polynomial constant (default: 1).
- `scale` - polynomial scale (default: 1).

### kernel.compute(x, y)

Returns the dot product between `x` and `y` in feature space.

## License

[MIT](./LICENSE)

[npm-image]: https://img.shields.io/npm/v/ml-kernel-polynomial.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ml-kernel-polynomial
[ci-image]: https://github.com/mljs/kernel-polynomial/actions/workflows/nodejs.yml/badge.svg?branch=main
[ci-url]: https://github.com/mljs/kernel-polynomial/actions/workflows/nodejs.yml
[download-image]: https://img.shields.io/npm/dm/ml-kernel-polynomial.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-kernel-polynomial

---
_Source: https://npm.io/package/ml-kernel-polynomial · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
