Coder Social home page Coder Social logo

hxsylzpf / frequentpattents_caraccident_python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wenhengqiu/frequentpattents_caraccident_python

0.0 2.0 0.0 3.16 MB

從台北2015年車禍數據中,尋找frequent patterns,從而發現車禍多發的關聯因素,以制定相應措施,減少車禍發生的概率

License: MIT License

Python 100.00%

frequentpattents_caraccident_python's Introduction

台北車禍數據之Frequent Patterns

1、項目介紹

項目介紹: 從台北2015年車禍數據中,尋找frequent patterns,從而發現車禍多發的關聯因素,以制定相應措施,減少車禍發生的概率

數據說明: 發生時間、地點、死傷人數、車種、性別、年齡、天候、速限、道路型態、事故位置。

數據大小: 49519筆

2、演算法實現

Relim Algorithm 簡單介紹(Recursive Elimination based on FP-Growth)

  • 第一步:假設數據集為:abcd,初始化頻繁模式前綴,考慮a時,前綴就是a,若ab頻繁,則就是ab
  • 第二步:加入未考慮的事務項,看和頻繁模式前綴的組合是否頻繁,若是轉第三步,不是則繼續考慮下一個事務項,當全部事務項考慮完畢,則算法結束。
  • 第三步:講第二步購成頻繁的模式輸出,並以此模式作為頻繁模式前綴,轉到第一步繼續考察。

3、檔案介紹

  • AR_1000.txt: Association Rules前1000的Rules
  • data_raw.csv: 原始數據,可以從[臺北市政府警察局交通警察大隊]下載
  • FP_1000.txt: Freqeunt Patterns前1000的Patterns
  • Group9_DM_hw2.pdf: 相關的報告
  • hw2.py: 實現源碼

frequentpattents_caraccident_python's People

Contributors

wenhengqiu avatar

Watchers

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