nirs4all.core package
Subpackages
- nirs4all.core.logging package
- Submodules
- Module contents
BranchContextBufferedHandlerConsoleFormatterEvaluationProgressEventTypeEventType.ARTIFACTEventType.BRANCH_COMPAREEventType.BRANCH_ENTEREventType.BRANCH_EXITEventType.BUILDEventType.COLLECTEventType.COMPLETEEventType.CONFIG_LOADEventType.DEDUPLICATEEventType.ENVIRONMENTEventType.ERROREventType.EXPANDEventType.LEAKAGE_CHECKEventType.LOADEventType.METRICEventType.MODELEventType.PREDICTIONSEventType.PROGRESSEventType.PRUNEEventType.REPORTEventType.SKIPEventType.SOURCE_CONCATEventType.SOURCE_PROCESSEventType.STARTEventType.STEPEventType.TRAIN_METAEventType.TRANSFORMEventType.VALIDATEEventType.WARNING
FileFormatterJsonFormatterLogContextLogEventLogEvent.timestampLogEvent.levelLogEvent.phaseLogEvent.event_typeLogEvent.messageLogEvent.run_idLogEvent.statusLogEvent.branch_nameLogEvent.branch_pathLogEvent.branch_indexLogEvent.source_indexLogEvent.source_nameLogEvent.duration_msLogEvent.metricsLogEvent.extraLogEvent.branch_indexLogEvent.branch_nameLogEvent.branch_pathLogEvent.duration_msLogEvent.event_typeLogEvent.extraLogEvent.levelLogEvent.messageLogEvent.metricsLogEvent.phaseLogEvent.run_idLogEvent.source_indexLogEvent.source_nameLogEvent.statusLogEvent.timestampLogEvent.to_dict()LogEvent.to_json()
MultiLevelProgressNirs4allLoggerNullHandlerPhaseProgressBarProgressBar.COLOR_CYANProgressBar.COLOR_DIMProgressBar.COLOR_GREENProgressBar.COLOR_RESETProgressBar.COLOR_YELLOWProgressBar.EMPTY_ASCIIProgressBar.EMPTY_UNICODEProgressBar.FILLED_ASCIIProgressBar.FILLED_UNICODEProgressBar.__enter__()ProgressBar.__exit__()ProgressBar.close()ProgressBar.set_description()ProgressBar.set_postfix()ProgressBar.start()ProgressBar.update()ProgressBar.wrap()
ProgressConfigProgressConfig.bar_widthProgressConfig.show_percentageProgressConfig.show_countProgressConfig.show_elapsedProgressConfig.show_etaProgressConfig.show_rateProgressConfig.refresh_rateProgressConfig.use_unicodeProgressConfig.use_colorsProgressConfig.bar_widthProgressConfig.refresh_rateProgressConfig.show_countProgressConfig.show_elapsedProgressConfig.show_etaProgressConfig.show_percentageProgressConfig.show_rateProgressConfig.use_colorsProgressConfig.use_unicode
RotatingRunFileHandlerRunStateRunState.run_idRunState.run_nameRunState.projectRunState.start_timeRunState.current_phaseRunState.branch_stackRunState.source_contextRunState.stack_contextRunState.extraRunState.branch_depthRunState.branch_pathRunState.branch_stackRunState.current_branchRunState.current_phaseRunState.extraRunState.projectRunState.run_idRunState.run_nameRunState.source_contextRunState.stack_contextRunState.start_time
SourceContextSpinnerProgressStackContextStatusSymbolsThrottledHandlerconfigure_logging()configure_progress()evaluation_progress()format_duration()format_number()format_run_footer()format_run_header()format_table()get_config()get_current_state()get_logger()get_run_id()get_symbols()is_configured()progress_bar()reset_logging()spinner()
Submodules
Module contents
Core functionality for nirs4all.
This module contains fundamental types, metrics, and task detection logic that are used throughout the library.
- class nirs4all.core.TaskType(value)[source]
-
Enumeration of machine learning task types.
- BINARY_CLASSIFICATION = 'binary_classification'
- MULTICLASS_CLASSIFICATION = 'multiclass_classification'
- REGRESSION = 'regression'
- nirs4all.core.detect_task_type(y: ndarray, threshold: float = 0.05) TaskType[source]
Detect task type based on target values.
- Parameters:
y – Target values array
threshold – Threshold for determining if values are continuous (regression) vs discrete (classification). For integer values, if n_unique <= max_classes or n_unique <= len(y) * threshold, it’s considered classification.
- Returns:
Detected task type
- Return type: