New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

adapt-learn

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adapt-learn

Adaptative learning simple abstraction

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

#Index

Classes

  • class: Learn

Functions

#class: Learn Members

##new Learn() Used to meta learn based on score.

#add(obj, score) Method to add to series, meta information and given score.

Params

  • obj Object - meta information
  • score Number - score number

Returns: Learn - self - self instance
#getSeries() Get series inserted sorted by score and given value.

Returns: Array - self.series
#getNextOf(n) Get next position in series based on a number of score

Params

  • n Number - an number

Returns: Object - out or {Null}
#getOf(n) Get actual position in series based on number of score

Params

  • n Number - an number

Returns: Object - out or {Null}
#getPreviousOf(n) Get previous position in series based on a number

Params

  • n Number - an number

Returns: Object - out or {Null}
#adapt(currentScore, flag) Adapt position position in serie based on params

Params

  • currentScore Number - an number
  • flag Boolean - or {Null} - an flag

Returns: Object - out or {Null}

Keywords

adaptative

FAQs

Package last updated on 11 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts