cobra

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	BuildTime = "unknown"
	Commit    = "unknown"
)

Version information (set at build time)

Functions

func Execute

func Execute()

Execute runs the CLI application

func NewAnalyzeCommand

func NewAnalyzeCommand() *cobra.Command

NewAnalyzeCommand creates the analyze subcommand

func NewCompletionCommand

func NewCompletionCommand(rootCmd *cobra.Command) *cobra.Command

NewCompletionCommand creates the completion subcommand

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates the root cobra command

func NewTransformCommand

func NewTransformCommand() *cobra.Command

NewTransformCommand creates the transform subcommand

func NewValidateCommand

func NewValidateCommand() *cobra.Command

NewValidateCommand creates the validate subcommand

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand creates the version subcommand

func ProjectData

func ProjectData(data, loadings [][]float64) [][]float64

ProjectData projects data onto principal components using loadings

Types

type AnalyzeOptions

type AnalyzeOptions struct {
	// PCA parameters
	Components int
	Method     string

	// Kernel PCA parameters
	KernelType   string
	KernelGamma  float64
	KernelDegree int
	KernelCoef0  float64

	// Preprocessing options
	MeanCenter      bool
	Scale           string // "none", "standard", "robust"
	ScaleOnly       bool
	SNV             bool
	VectorNorm      bool
	NoMeanCentering bool

	// Data format options
	NoHeaders  bool
	NoIndex    bool
	Delimiter  string
	NAValues   string
	TargetCols string

	// Missing data handling
	MissingStrategy string
	MissingPercent  float64

	// Output options
	OutputFormat   string
	OutputDir      string
	OutputScores   bool
	OutputLoadings bool
	OutputVariance bool
	OutputAll      bool
	IncludeMetrics bool

	// Exclude options
	ExcludeRows    string
	ExcludeColumns string

	// Verbose output
	Verbose bool
}

AnalyzeOptions holds all the options for the analyze command

type TransformOptions

type TransformOptions struct {
	// Output options
	OutputFormat string
	OutputDir    string

	// Data format options
	NoHeaders bool
	NoIndex   bool
	Delimiter string
	NAValues  string
}

TransformOptions holds all the options for the transform command

type ValidateOptions

type ValidateOptions struct {
	// Data format options
	NoHeaders bool
	NoIndex   bool
	Delimiter string
	NAValues  string

	// Validation options
	Strict  bool
	Summary bool
}

ValidateOptions holds all the options for the validate command

Jump to

Keyboard shortcuts

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