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 ¶
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 ¶
Directories ¶
Path | Synopsis |
---|---|
lib/mining/resampling/lnsmote | Package lnsmote implement the Local-Neighborhood algorithm from the paper, |
lib/mining/resampling/smote | Package 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.