Git Product home page Git Product logo

ais-lstm's Introduction

AIS - LSTM

About

LSTM Keras Neural Network to predict ship location using Danish AIS data
Data Found Here ftp://ftp.ais.dk/ais_data/ - CSV files too large to include in repository

Project Folder Structure

├── README.md          <- The top-level README.
├── data
│   ├── interim        <- Intermediate data that has been transformed.
│   ├── processed      <- The final, canonical data sets for modeling. In .npz format.
│   └── raw            <- The original, immutable data dump.
│
├── models             <- Trained and serialized models, model predictions, or model summaries
│
├── references         <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports            <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures        <- Generated graphics and figures to be used in reporting
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
│
├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   │
│   ├── data           <- Scripts to download or generate data
│   │   ├── pull_danish_data.py
│   │
│   ├── preproc		   <- Scripts to turn raw data into features for modeling
│   │   ├── danish_preproc.py
│   │
│   ├── models         <- Scripts to train models and then use trained models to make
│   │   │                 predictions
│   │   ├── danish_predict_model.py
│   │   ├── danish_train_model.py
│   │
│   └── visualization  <- Scripts to create exploratory and results oriented visualizations
│       ├── danish_graph_tracks.py
│
│
│
└────────────────────────────────────────────────────────────────────────────────────────────────────

ais-lstm's People

Contributors

stigterrebonne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ais-lstm's Issues

is there a problem during line 44-46 in danish_preproc.py?

in file /src/preproc/danish_proproc.py, In 44 lines of the code, when I ran it, I found this "if (last_count - i) == unique_count[k]:" sentence did not work. Because "last_count - i" is always a negative number, it will not be equal to "unique_count[k]".

I try to solve it,,
when I change it to "if (i - last_count) == unique_count[k]:, the judgment statement will be run. But, when the mmsi changes, the value of "first_lat[k], first_long[k]" are not change right!

So, Is my understanding wrong?Please give pointers if it is convenient for you,thank you!

Object arrays cannot be loaded when allow_pickle=False in danish_preproc.py at lin 13 df = sorted_data['sorted_data']

Creator: Stig Terrebonne
Date: July 25th, 2018
"""

import numpy as np

sorted_data = np.load('../../data/interim/danish_sorted_data.npz')
df = sorted_data['sorted_data']

take out first column

second_column = df[:, 1]

find number of batches

batch_count = 0
unique_vals, unique_count = np.unique(second_column, return_counts=True)
for i in unique_count:
if i >= 5:
batch_count += (i - 4)

create empty x,y train

x_train = np.empty([batch_count, 5, 6])
y_train = np.empty([batch_count, 6])

Error
Traceback (most recent call last):
File "D:\PYTHON\Safety_Marine\AIS-LSTM\src\preproc\danish_preproc.py", line 13, in
df = sorted_data['sorted_data']
File "C:\Users\Administration\miniconda3\envs\Safety_Marine_v310\lib\site-packages\numpy\lib\npyio.py", line 256, in getitem
return format.read_array(bytes,
File "C:\Users\Administration\miniconda3\envs\Safety_Marine_v310\lib\site-packages\numpy\lib\format.py", line 795, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

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.