resampling

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: BSD-3-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

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

Variables

This section is empty.

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.

Directories

Path Synopsis
Package lnsmote implement the Local-Neighborhood algorithm from the paper,
Package lnsmote implement the Local-Neighborhood algorithm from the paper,
Package smote resamples a dataset by applying the Synthetic Minority Oversampling TEchnique (SMOTE).
Package smote resamples a dataset by applying the Synthetic Minority Oversampling TEchnique (SMOTE).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL