InvestLMOptions<T>

Options & Configuration · AiDotNet.Models.Options

Configuration options for InvestLM (Investment Language Model).

Inheritance: ModelOptions → InvestLMOptions<T>

For Beginners

InvestLM focuses on investment applications:

The Key Insight: Investment decisions require understanding of market dynamics, company fundamentals, and economic indicators. InvestLM is trained to process investment-relevant text and provide insights for portfolio management.

What Problems Does InvestLM Solve?

  • Stock recommendation reasoning
  • Portfolio analysis and suggestions
  • Market research summarization
  • Investment thesis generation
  • Risk factor analysis
  • Earnings call insights extraction

Key Benefits:

  • Understands investment terminology
  • Can reason about market conditions
  • Trained on investment research corpus
  • Supports various investment workflows

How It Works

InvestLM is a large language model specifically designed for investment-related NLP tasks including portfolio analysis, stock recommendation, and market research.

Reference: Yang et al., “InvestLM: A Large Language Model for Investment”, 2023.

Constructors

Constructor Summary
InvestLMOptions() Initializes a new instance with default InvestLM configuration.
InvestLMOptions(InvestLMOptions<T> other) Initializes a new instance by copying from another instance.

Properties

Property Summary
double DropoutRate { get; set; } Dropout rate (default: 0.1).
int HiddenDimension { get; set; } Hidden dimension (default: 768).
int IntermediateDimension { get; set; } Intermediate feed-forward dimension (default: 3072).
int MaxSequenceLength { get; set; } Maximum sequence length in tokens (default: 2048).
int NumAttentionHeads { get; set; } Number of attention heads (default: 12).
int NumClasses { get; set; } Number of output classes (default: 3 for recommendation: buy/hold/sell).
int NumLayers { get; set; } Number of transformer layers (default: 12).
int VocabularySize { get; set; } Vocabulary size (default: 32000 for LLaMA-style).
string TaskType { get; set; } Task type: “recommendation”, “sentiment”, “qa”, “summary” (default: “recommendation”).

Methods

Method Summary
void Validate() Validates the InvestLM options.