-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug in validate method #86
Comments
I ran into some trouble trying to fix this. df = pd.read_sql_query(
sql=query,
con=connection,
params=params,
index_col='reftime',
parse_dates=['reftime']) This will parse the 'reftime' column as a date and create a pandas Dataframe with a We can make the index of the pandas Dataframe timezone-aware by replacing the above call to df = pd.read_sql_query(
sql=query,
con=connection,
params=params,
index_col='reftime',
parse_dates={
'reftime': {
'utc': True,
'unit': 's'
}
}) This creates a Dataframe with a
So it looks like there may be some wrinkles making the Datasets returned from |
Fix validation and target-loading bugs
After #76 landed, I get the following stack trace when evaluating models:
Looks like the offending line is
ground_truth
is loaded with theapollo.datasets.ga_power.open_sqlite
method, which uses pandas Timestamp parsing instead of our new function inapollo.timestamps
.The timestamps in the index of DataArrays returned by
open_sqlite
don't have timezone info.The text was updated successfully, but these errors were encountered: