mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 14:01:28 +08:00
* Update pytorch_tabnet.py
$ `flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics`
```
./qlib/qlib/contrib/model/pytorch_tabnet.py:567:38: F821 undefined name 'inp'
self.independ.append(GLU(inp, out_dim, vbs=vbs))
^
./qlib/examples/model_rolling/task_manager_rolling.py:75:18: F821 undefined name 'task_train'
run_task(task_train, self.task_pool, experiment_name=self.experiment_name)
^
2 F821 undefined name 'task_train'
2
```
* Fix undefined names in Python code
* from qlib.model.trainer import task_train
Requirements
Here is the minimal hardware requirements to run the workflow_by_code example.
- Memory: 16G
- Free Disk: 5G
NOTE
The results will slightly vary on different OSs(the variance of annualized return will be less than 2%).
The evaluation results in the README.md page are from Linux OS.