InvestLM<T>
Models & Types · AiDotNet.Finance.NLP
InvestLM neural network model specialized for investment professionals and research.
Inheritance: NeuralNetworkBase<T> → FinancialModelBase<T> → FinancialNLPModelBase<T> → InvestLM<T>
For Beginners
InvestLM is a language model fine-tuned specifically for investment professionals. It can analyze investment opportunities, summarize financial reports, provide market commentary, and answer questions about portfolio strategies. Think of it as an AI research analyst that understands investment terminology, valuation methods, and market dynamics.
Example
// Define architecture for investment-focused language generation (2048 tokens)
var architecture = new NeuralNetworkArchitecture<double>(
inputType: InputType.OneDimensional,
taskType: NeuralNetworkTaskType.MultiClassClassification,
inputHeight: 2048, inputWidth: 1, inputDepth: 1, outputSize: 32000);
// Training mode: instruction-tuned LLM for investment analysis and portfolio commentary
var model = new InvestLM<double>(architecture);
// ONNX inference mode: load pre-trained InvestLM model
var onnxModel = new InvestLM<double>(architecture, "investlm.onnx");
Constructors
| Constructor | Summary |
|---|---|
InvestLM(NeuralNetworkArchitecture<T> architecture, InvestLMOptions<T> options, IGradientBasedOptimizer<T, Tensor<T>, Tensor<T>> optimizer, ILossFunction<T> lossFunction) |
Creates an InvestLM network in native mode for training. |
InvestLM(NeuralNetworkArchitecture<T> architecture, string onnxModelPath, InvestLMOptions<T> options, IGradientBasedOptimizer<T, Tensor<T>, Tensor<T>> optimizer) |
Creates an InvestLM network in native mode for training. |