package resampling

import "github.com/shuLhan/share/lib/mining/resampling"

Package resampling provide common interface, constants, and methods for resampling modules.

Index

Constants

const (
	// DefaultK nearest neighbors.
	DefaultK = 5
	// DefaultPercentOver sampling.
	DefaultPercentOver = 100
)

Functions

func WriteSynthetics

func WriteSynthetics(ri Interface, file string) (e error)

WriteSynthetics will write synthetic samples in resampling module `ri` into `file`.

Types

type Interface

type Interface interface {
	GetSynthetics() tabula.DatasetInterface
}

Interface define common methods used by resampling module.

Source Files

interface.go

Directories

PathSynopsis
lib/mining/resampling/lnsmotePackage lnsmote implement the Local-Neighborhood algorithm from the paper,
lib/mining/resampling/smotePackage smote resamples a dataset by applying the Synthetic Minority Oversampling TEchnique (SMOTE).
Version
v0.53.1 (latest)
Published
Mar 2, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
5 days ago

Tools for package owners.