Giter Site home page Giter Site logo

hgb-git / genetic-algorithm-kmeans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yangami/genetic-algorithm-kmeans

0.0 0.0 0.0 1.74 MB

对于一个板块内的股票使用Kmeans聚类剔除垃圾股,利用遗传算法分析上市公司的财务指标,从基本面的角度得出合理的股票选择模型,帮助投资者在某个板块内确定出选择高收益股票的标准。

Python 100.00%

genetic-algorithm-kmeans's Introduction

Genetic-Algorithm-Kmeans

##[功能描述]:对于一个板块内的股票使用Kmeans聚类剔除垃圾股,利用遗传算法分析上市公司的财务指标,从基本面的角度得出合理的股票选择模型,帮助投资者在某个板块内确定出选择高收益股票的标准。 ##步骤: ###第一步,对股票样本进行初步处理。利用改进的Kmeans算法对一个板块内的股票进行聚类,根据财务指标将不利于投资的垃圾股类排除,减小基于基本面选股的噪声,提高股票组合选择的准确率和效率。 第二步,利用遗传算法寻找最佳选股模型从而找到最佳的股票投资组合。 1、设置一个股票选择规则。如:总资产>0.3,市盈率>0.9(标准化后)。 2、设为适应度(希望最大化的目标函数)为股票持有期收益率。 3、随机产生一些规则,利用自然选择的**让规则以一定比例随机变化,适应度大的复制,适应度小的死亡,并迭代“变异-筛选”过程。 4、最后剩下的规则就是该板块最优选股模型。 [开发环境]Python3.6 [项目结构简介及运行说明]见:辅助说明文件

genetic-algorithm-kmeans's People

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.