Skip to main content

An easy-to-use deep model for time series forecast

Project description

DeepForecast

An Easy-to-use Deep Model for Time Series Forecast

Methods

  • STTF
  • Seq2Seq

How to install

pip install deepforecast

How to use

Use STTF as an exapmle:

from tensorflow.keras.utils import plot_model
from deepforecast.features import SparseColumn, SequenceColumn
from deepforecast.models import STTF

attr_feats = ["age", "user", "platform"]
sequence_feats = ["history", "future"]

attr_columns = []
for feat in attr_feats:
    col = SparseColumn(name=feat, vocab_size=10, embed_dim=8)
    attr_columns.append(col)

sequence_columns = []
hist_col = SequenceColumn(name="history", num_seq=5, seq_steps=28, dim=1)
sequence_columns.append(hist_col)
fut_col = SequenceColumn(name="future", num_seq=4, seq_steps=7, dim=1)
sequence_columns.append(fut_col)

model = STTF(attr_columns, sequence_columns, attr_attention_embed_dim=12)
model.summary()
plot_model(model, show_shapes=True)
model.compile(optimizer="rmsprop",
              loss=["mse", "mse"],
              loss_weights=[0.2, 0.8],
              metrics=["mse"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepforecast-0.0.4.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file deepforecast-0.0.4.tar.gz.

File metadata

  • Download URL: deepforecast-0.0.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

File hashes

Hashes for deepforecast-0.0.4.tar.gz
Algorithm Hash digest
SHA256 159791e9997d62ed943f12d151d5f8745a256398186e369ee9902be3d3840fc3
MD5 a6b45953eb711c50d87d42d192d04a67
BLAKE2b-256 2638f6ff45e32113cbb8486ab6710fb303a32654b4570463760351ace6a28ae1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page