Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add CGAN for timeseries #108

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

feat: Add CGAN for timeseries #108

wants to merge 6 commits into from

Conversation

jfsantos-ds
Copy link
Contributor

Closes #93

@jfsantos-ds jfsantos-ds requested a review from fabclmnt November 2, 2021 18:46
@jfsantos-ds jfsantos-ds self-assigned this Nov 2, 2021
@jfsantos-ds jfsantos-ds requested a review from mglcampos November 2, 2021 18:48
@jfsantos-ds jfsantos-ds marked this pull request as draft November 3, 2021 00:17
@jfsantos-ds jfsantos-ds marked this pull request as ready for review November 4, 2021 12:43
@@ -1,45 +1,46 @@
# Inverts all preprocessing pipelines provided in the preprocessing examples
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in this script consist in extending the inverse support to the MinMaxScaler

@@ -2,17 +2,30 @@
Get the stock data from Yahoo finance data
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allowing subsetting of columns

@@ -4,7 +4,7 @@
import numpy as np
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabling inverse_transform of the timeseries scaler (processor needs to be returned here)

@jfsantos-ds jfsantos-ds linked an issue Nov 4, 2021 that may be closed by this pull request
Copy link
Contributor

@fabclmnt fabclmnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revise sample method.

@jfsantos-ds jfsantos-ds requested a review from fabclmnt November 22, 2021 16:22
Francisco Santos added 5 commits December 15, 2021 18:17
remove changes on gitignore

removed unused n_feats argument
Auto regressive timeseries sampling method

revert TS data processor integration
data_.append(records)
data_ = hstack(data_)[:, :seq_len]
data.append(data_)
return array(vstack(data))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding to a revision of this sample method I think:

  1. We can force the number of samples to be the same as requested, i.e. truncate the last batch if needed
  2. Condition converted to tensor could be taken outside the for loop
  3. It does not seem to be truly auto-regressive since only the condition part of the produced records is being used as condition, we can add this capacity

Do you agree/have anything to add @fabclmnt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Add CGAN for Time-Series
2 participants