mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
Skip reinforcement learning for python 3.11
This commit is contained in:
parent
7a7f16b658
commit
b1a5776f14
|
@ -2,9 +2,9 @@
|
||||||
-r requirements-freqai.txt
|
-r requirements-freqai.txt
|
||||||
|
|
||||||
# Required for freqai-rl
|
# Required for freqai-rl
|
||||||
torch==1.13.1
|
torch==1.13.1; python_version < '3.11'
|
||||||
stable-baselines3==1.7.0
|
stable-baselines3==1.7.0; python_version < '3.11'
|
||||||
sb3-contrib==1.7.0
|
sb3-contrib==1.7.0; python_version < '3.11'
|
||||||
# Gym is forced to this version by stable-baselines3.
|
# Gym is forced to this version by stable-baselines3.
|
||||||
setuptools==65.5.1 # Should be removed when gym is fixed.
|
setuptools==65.5.1 # Should be removed when gym is fixed.
|
||||||
gym==0.21
|
gym==0.21; python_version < '3.11'
|
||||||
|
|
|
@ -51,7 +51,8 @@ def test_extract_data_and_train_model_Standard(mocker, freqai_conf, model, pca,
|
||||||
|
|
||||||
if is_mac() and not is_arm() and 'Reinforcement' in model:
|
if is_mac() and not is_arm() and 'Reinforcement' in model:
|
||||||
pytest.skip("Reinforcement learning module not available on intel based Mac OS")
|
pytest.skip("Reinforcement learning module not available on intel based Mac OS")
|
||||||
|
if is_py11() and 'Reinforcement' in model:
|
||||||
|
pytest.skip("Reinforcement learning currently not available on python 3.11.")
|
||||||
model_save_ext = 'joblib'
|
model_save_ext = 'joblib'
|
||||||
freqai_conf.update({"freqaimodel": model})
|
freqai_conf.update({"freqaimodel": model})
|
||||||
freqai_conf.update({"timerange": "20180110-20180130"})
|
freqai_conf.update({"timerange": "20180110-20180130"})
|
||||||
|
@ -218,6 +219,8 @@ def test_start_backtesting(mocker, freqai_conf, model, num_files, strat, caplog)
|
||||||
|
|
||||||
if is_mac() and 'Reinforcement' in model:
|
if is_mac() and 'Reinforcement' in model:
|
||||||
pytest.skip("Reinforcement learning module not available on intel based Mac OS")
|
pytest.skip("Reinforcement learning module not available on intel based Mac OS")
|
||||||
|
if is_py11() and 'Reinforcement' in model:
|
||||||
|
pytest.skip("Reinforcement learning currently not available on python 3.11.")
|
||||||
Trade.use_db = False
|
Trade.use_db = False
|
||||||
|
|
||||||
freqai_conf.update({"freqaimodel": model})
|
freqai_conf.update({"freqaimodel": model})
|
||||||
|
@ -514,6 +517,8 @@ def test_get_state_info(mocker, freqai_conf, dp_exists, caplog, tickers):
|
||||||
|
|
||||||
if is_mac():
|
if is_mac():
|
||||||
pytest.skip("Reinforcement learning module not available on intel based Mac OS")
|
pytest.skip("Reinforcement learning module not available on intel based Mac OS")
|
||||||
|
if is_py11():
|
||||||
|
pytest.skip("Reinforcement learning currently not available on python 3.11.")
|
||||||
|
|
||||||
freqai_conf.update({"freqaimodel": "ReinforcementLearner"})
|
freqai_conf.update({"freqaimodel": "ReinforcementLearner"})
|
||||||
freqai_conf.update({"timerange": "20180110-20180130"})
|
freqai_conf.update({"timerange": "20180110-20180130"})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user