Repository navigation
Module_DeepLearning_Audio
cyclone_dll edited this page Jul 6, 2026
·
6 revisions
Location: Home / Deep learning module / Audio integration
This document summarizes the full Signal → BatchTensor → Trainer pipeline (phases A–D). Primary APIs live in Vorcyc.Mathematics.DeepLearning.Integration and Integration.Frontends.
| Use | Shape | Typical entry |
|---|---|---|
| Waveform batch | N×1×1×L | BatchTensorSignalExtensions.FromSignalVectors |
| Spectrogram batch | N×T×F×1 | SpectrogramBatchBuilder.FromSignals |
| Periodogram / feature vector | N×1×1×F |
FeatureBatchBuilder.FromPeriodograms / FromExtractorMeans
|
| Frame feature sequence | N×T×F×1 | FeatureBatchBuilder.FromExtractors |
| Classification labels | N×1×1×C | AudioTrainingSamples.CreateOneHotTargets |
| Regression scalar | N×1×1×1 | AudioTrainingSamples.CreateScalarTargets |
Dependency direction: DeepLearning → SignalProcessing (DSP core does not reference DL).
var sample = AudioTrainingSamples.SpectrogramClassification(
signals, labels, numClasses: 2, stft);
trainer.FitBatchSequential(model, loss, optimizer, [sample], epochs: 100);var mfcc = AudioTrainingSamples.CreateDefaultMfccExtractor(8000);
var features = FeatureBatchBuilder.FromExtractorMeans(signals, mfcc); // N×1×1×13var stack = AudioFrontendLayers.CreateMelSpectrogramStack(8000, 64, 32, melBands: 24);
var model = new BatchSequential<float>(stack[0], stack[1], stack[2], /* CNN head */);-
BatchStftMagnitudeLayerbackward is stop-gradient (CNN head only). -
BatchPreEmphasisLayerandBatchMelFilterbankLayersupport gradients (linear).
For neural-network curve fitting, use MlpRegressor (DeepLearning.Training) — see Examples/DeepLearning_example/CurveFitDemo.cs. For waveform → scalar regression, build a BatchSequential and train with a batch MSE loss:
var sample = AudioTrainingSamples.WaveformRegression(signals, scalarTargets);
trainer.FitBatchSequential(model, new BatchMeanSquaredErrorLoss<float>(), optimizer, [sample], epochs: 100);| Test | Description |
|---|---|
SignalBatchTensor_test |
Waveform roundtrip |
SpectrogramBatch_training_test |
Spectrogram CNN classification |
FeatureBatchBuilder_test |
Feature shapes |
MfccMean_training_test |
MFCC mean + MLP |
AudioFrontend_training_test |
Waveform → frontend → CNN |
WaveformScalarRegression_test |
Waveform → amplitude regression |
See Module_DeepLearning.md for the full module manual.
-
- 🔖 ArrayExtension class
- 🔖 BaseConverter class
- 🔖 BitMathExtension class
- 🔖 Combinatorics class
- 🔖 ConstantsFp32 class
- 🔖 NumberMapper class
- 🔖 PinnableArray<T> class
- 🔖 SimpleRNG_Fp32 and SimpleRNG_Fp64 classes
- 🔖 TrigonometryHelper class
- 🔖 VMath class
- 🔖 Pinned buffers (Buffers)
- 🔖 IPinnedBuffer<T> interface
- 🔖 POHBuffer<T> class
- 🔖 NativeBuffer<T> class
-
- 🔖 0.9 classifier walkthrough
- 🔖 KNN<T> class
- 🔖 MultipleLinearRegression<T> class
- 🔖 SimpleLinearRegression<T> class
- 🔖 SupportVectorMachine<TSelf> class
- 🔖 DBSCAN<T> class
- 🔖 ExpectationMaximization<T> class
- 🔖 GMM<T> class
- 🔖 HierarchicalClustering<T> class
- 🔖 KMeansClusterer<T> class
- 🔖 VectorQuantization<T> class
- 🔖 FactorAnalysis<T> class
- 🔖 PCA<TSelf> class
- 🔖 TSNE<T> class
- 🔖 Distance metric classes
-
📒 Examples
-
📒 GPU 策略说明
- 🔖 为何放弃主包 GPU
- 🔖 当前性能路径
- 🔖 若仍需要更强算力
-
📒 计算上下文模块
-
📒 核心模块
-
📒 深度学习模块
-
📒 线性代数模块
-
📒 机器学习模块
- 🔖 0.9 分类器完整示例
- 🔖 KNN<T> 类
- 🔖 MultipleLinearRegression<T> 类
- 🔖 SimpleLinearRegression<T> 类
- 🔖 SupportVectorMachine<TSelf> 类
- 🔖 DBSCAN<T> 类
- 🔖 ExpectationMaximization<T> 类
- 🔖 GMM<T> 类
- 🔖 HierarchicalClustering<T> 类
- 🔖 KMeansClusterer<T> 类
- 🔖 VectorQuantization<T> 类
- 🔖 FactorAnalysis<T> 类
- 🔖 PCA<TSelf> 类
- 🔖 TSNE<T> 类
- 🔖 距离度量类
-
📒 信号处理模块
-
📒 数值模块
-
📒 统计模块
- 🔖 基础统计函数
- 🔖 高级统计函数
- 🔖 稳健统计 / RunningMoments
- 🔖 其它统计函数
- 🔖 分布相关函数
- 🔖 时间序列分析
- 🔖 IComparable 扩展
- 🔖 ExtremeValueFinder
- 🔖 INumber 扩展
-
📒 FFTW 扩展
-
📒 示例