package resampling

import "git.sr.ht/~shulhan/pakakeh.go/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.60.0 (latest)
Published
Feb 1, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
26 minutes ago

Tools for package owners.