Giter VIP home page Giter VIP logo

time-series-model's Introduction

Time series model using tensorflow

Table of contents

General info

This repository contains models that have been converted from image models and layers to time series.

Technologies

  • python 3.7 ~ 3.10
  • tensorflow 2.7.0
  • numpy 1.21.4

Install

install package

cd time-series-model-main
python setup.py

example

import tftime

model = tftime.build_model("sam_efficientnet_b2", (30, 1), 2, None)
import tftime
import tensorflow as tf

inputs = tf.keras.layers.Input((30, 1))

x = tftime.block.ConvBlock(128, "conv1d", "resnet")(inputs)
x = tf.keras.layers.GlobalAvgPool1D()(x)
x = tftime.layers.Output(5, "softmax")

model = tftime.model.SAMModel(inputs, x)
model.compile("adam", categorical_crossentropy, ["accuracy"])

model.fit(x, y)

available model

print(tftime.available_network)
['efficientnet b0 ~ b8' 'sam_efficientnet b0 ~ b8'
 'dense_efficientnet b0 ~ b8' 'sam_dense_efficientnet b0 ~ b8'
 'lambda_efficientnet b0 ~ b8' 'sam_lambda_efficientnet b0 ~ b8'
 'efficientnetv2 b0 ~ b8' 'sam_efficientnetv2 b0 ~ b8' 'resnet b0 ~ b8'
 'sam_resnet b0 ~ b8' 'se_resnet b0 ~ b8' 'sam_se_resnet b0 ~ b8'
 'densenet b0 ~ b8' 'sam_densenet b0 ~ b8' 'se_densenet b0 ~ b8'
 'sam_se_densenet b0 ~ b8' 'lambda_resnet b0 ~ b8'
 'sam_lambda_resnet b0 ~ b8' 'se_lambda_resnet b0 ~ b8'
 'sam_se_lambda_resnet b0 ~ b8' 'convnext b0 ~ b8' 'sam_convnext b0 ~ b8'
 'se_convnext b0 ~ b8' 'sam_se_convnext b0 ~ b8' 'lambda_convnext b0 ~ b8'
 'sam_lambda_convnext b0 ~ b8' 'se_lambda_convnext b0 ~ b8'
 'sam_se_lambda_convnext b0 ~ b8']

time-series-model's People

Contributors

komo135 avatar

Stargazers

 avatar  avatar

Watchers

 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.