在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jjakimoto/finance_ml开源软件地址(OpenSource Url):https://github.com/jjakimoto/finance_ml开源编程语言(OpenSource Language):Jupyter Notebook 97.8%开源软件介绍(OpenSource Introduction):finance_mlPython implementations of Machine Learning helper functions for Quantiative Finance based on books,
Advances in Financial Machine Learning and Machine Learning for Asset Managers , written by InstallationExcute the following command python setup.py install or Simply add ImplementationThe following functions are implemented:
ExamplesSome of example notebooks are found under the folder multiprocessingParallel computing using import pandas as pd
import numpy as np
def apply_func(x):
return x ** 2
def func(df, timestamps, f):
df_ = df.loc[timestamps]
for idx, x in df_.items():
df_.loc[idx] = f(x)
return df_
df = pd.Series(np.random.randn(10000))
from finance_ml.multiprocessing import mp_pandas_obj
results = mp_pandas_obj(func, pd_obj=('timestamps', df.index),
num_threads=24, df=df, f=apply_func)
print(results.head()) Output:
For more detail, please refer to example notebook! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论