GithubHelp home page GithubHelp logo

markov-multi-prediction's Introduction

多候选马尔可夫轨迹预测

功能

  • 导入csv数据并计算马尔可夫矩阵
  • 根据给定历史序列给出预测
  • 每个点的预测都能给出多个候选值
  • 历史轨迹长度、预测轨迹长度和候选值数量均可调整

使用

初始化

markov = Markov(his_count=1, pre_count=3, test_count=3, tol=3)
  • his_count为历史轨迹长度
  • pre_count为预测轨迹长度
  • test_count为csv文件中每一行数据需要留作测试集的长度(取最后test_count数量的点作测试集)
  • tol为候选值数量

读入csv文件

markov.read_csv('trajectory100000.csv')

使用csv文件数据进行测试

acc = markov.test_csv('trajectory100000.csv')

导出预测序列

markov.write_pre('trajectory100000.csv', 'result.csv')

markov-multi-prediction'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.