GithubHelp home page GithubHelp logo

ai-fengshui's Introduction

当风水遇上AI

风水内容繁冗复杂,过去需要人博闻强记,学习数年,然而现在由于有了计算机,很多口诀、歌谣等辅助记忆的东西都不需要了,最主要是抓住核心内容,可以大幅减少这一学习过程。

本项目致力于研究如何将风水的经典算法和机器学习相结合,形成拿来即用的风水工具。

首先做了一个三元九运九星命卦速算,输入年份可以直接得出该年对应的天干地支为多少,男女的命卦分别是什么。

不好意思那个四柱速算暂时还是错的,我们计算年柱的时候不是以春节作为年与年的界限,而是以立春作为界限,立春之前为上一年,立春之后为下一年,而立春这一天就要看交节时辰,如果你是立春前出生的,你的年柱就是上一年的年柱。所以我之前写的那个把年柱和月柱日柱时柱分开计算的方法,只适用于每年立春之后出生的!

最近发现有一个项目应该是市面上唯一一个写的正确的四柱项目,所以我就不自己写了,直接拿来用了,项目我已经fork,还有一个网页版本,可以直接使用,亲测准确:

http://6tail.cn/calendar/api.html#demo.bazi.html

ai-fengshui's People

Contributors

sinshine 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.