microsoft / qlib

Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
https://qlib.readthedocs.io/en/latest/
MIT License
14.54k stars 2.53k forks source link

Add "mse" metric option to ALSTM.metric_fn #1810

Closed raikiriww closed 1 week ago

raikiriww commented 1 week ago

Enhance the metric_fn method of the ALSTM class to include the "mse" metric option.

Description

Add "mse" metric option to ALSTM.metric_fn

Motivation and Context

https://github.com/microsoft/qlib/issues/1780#issue-2257857368

User can choose "mse" metric to evaluate the model

How Has This Been Tested?

Screenshots of Test Results (if appropriate):

  1. Pipeline test: image

  2. Your own tests: Use the file qlib/examples/benchmarks/ALSTM/workflow_config_alstm_Alpha158.yaml for testing. Set task -> model -> kwargs -> metric to mse and set n_jobs to 5 due to the memory limit of my computer. image

Types of changes

you-n-g commented 1 week ago

Thanks for your great effort!