Coder Social home page Coder Social logo

alpha_examples's Introduction

alpha_examples

本项目是将polars_ta, expr_codegen, AlphaInspect等几个项目利用起来的开箱即用示例

  1. polars_ta: 基于polars表达式的指标库
  2. expr_codegen: 将WorldQuant Alpha101风格的表达式转换成polars风格代码的工具
  3. AlphaInspect: 仿alphalens的单因子分析工具

使用方法

git clone --depth=1 https://github.com/wukan1986/alpha_examples.git

然后使用PyCharmVSCode打开即可。

每个文件夹中的requirements.txt都需要安装

pip install -r requirements.txt

每个文件夹下的README.md都请认真先看一看

注意:如果github无法访问,用户可以在gitee中新建仓库,然后导入github仓库即可

data、codes、codegen 三目录

data生成测试用数据,它依赖于codes目录,而codes目录由codegen中的脚本生成

research 单因子分析示例

可以将它做为研发单因子的模板,只要改一行因子表达式即可

  1. demo_features.py: 演示准备数和特征
  2. demo_html.py: 演示生成网页报表
  3. demo_notebook.py: 可直接运行。也可在VSCode中通过Shift+Enter运行

gp_base/gp_run 遗传编程

自动大批量生成表达式。可将生成的表达式直接复制到research/demo_notebook.py中进行进一步分析

transformer 第三方表达转换

演示了Alpha101Alpha191转换成polars_ta风格表达式

alpha_examples's People

Contributors

wukan1986 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.