Skip to main content

Private API for Andrew

Project description

ai-replication

Checkout at: https://pypi.org/manage/project/aireplication/releases/

Usage

from aireplication.ultils.data import TimeSeriesGenerator, Dataset

config = {"dataset_name": "GYEONGGI2955",
          "features": ["Amount of Consumption", "Temperature"],
          "prediction_feature": "Amount of Consumption",  # Feature to use for prediction
          "input_width": 168,
          "output_length": 1,
          "train_ratio": 0.9
          }

dataset = Dataset(dataset_name=config["dataset_name"])
# data = dataset.dataloader.export_a_single_sequence()
data = dataset.dataloader.export_the_sequence(config["features"])

print("Building time series generator...")
tsf = TimeSeriesGenerator(data=data,
                          config=config,
                          normalize_type=1,
                          shuffle=False)

# Get model 
model = get_model(model_name=args.model_name,
                  config=config)

# Train model
history = model.fit(x=tsf.data_train[0],  # [number_recoder, input_len, number_feature]
                    y=tsf.data_train[1],  # [number_recoder, output_len, number_feature]
                    validation_data=tsf.data_valid)

List of dataset is available

config1 = {"dataset_name": "GYEONGGI2955",
          "features": ["Amount of Consumption", "Temperature"],
          "prediction_feature": "Amount of Consumption",  # Feature to use for prediction
          "input_width": 168,
          "output_length": 1,
          "train_ratio": 0.9
          }

config2 = {"dataset_name": "CNU_ENGINEERING_7",
          "features": [ "temperatures", "humidity", "pressure","energy" ]  # Features to use for training
          prediction_feature: "energy",  # Feature to use for prediction
          "input_width": 168,
          "output_length": 1,
          "train_ratio": 0.9
          }

Publishing the package

pip install twine
python setup.py sdist
twine upload dist/*

- Note: Testing case:

twine upload --repository testpypi dist/*

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

aireplication-0.0.4.tar.gz (11.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: aireplication-0.0.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for aireplication-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0234110b57e57b4bac9375083e138afa4306a8e08c50915279a6885227fd2dfd
MD5 d0eb8917be5e741edd55e12ab2428f46
BLAKE2b-256 e4aa65ea223b2a434adb72f4f564eefb865012aee196ee9725e24009a125cf5a

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