Machine Learning in Trading Strategy Design › Key Parameters

Michael BrenndoerferJanuary 3, 20261 min read
Quantitative FinanceAll chapters
Part 13 of 15Machine Learning and Alternative Data
Chapter 70Machine Learning in Trading Strategy Design › Key Parameters
Reading section 5 of 14 · Key Parameters · 1 minSection 5 of 14 · 1 min

Book contents

Section 5 of 14 · 1 min read

Machine Learning in Trading Strategy Design › Key ParametersOne section · Sections in this chapter5 / 14 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

The key parameters for the sentiment analysis pipeline are:

  • ngram_range: The range of n-grams (word sequences) to extract. Including bigrams (pairs of words) captures context better than single words alone.
  • max_features: The maximum number of words to include in the vocabulary. Limiting this focuses the model on the most frequent and informative terms.
  • alpha: The smoothing parameter for Naive Bayes. It prevents the model from assigning zero probability to words not seen in the training data.

The next chapter provides a deeper exploration of NLP techniques and alternative data sources, including more sophisticated approaches like transformer-based models and entity extraction.