Skip to content

Commit

Permalink
Add new compression files and remove unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAV committed Mar 14, 2024
1 parent f58f4d6 commit 4cbc8aa
Show file tree
Hide file tree
Showing 23 changed files with 235 additions and 1,268 deletions.
Binary file removed compressions/1/archive.tar.gz
Binary file not shown.
Binary file removed compressions/1/archive.zip
Binary file not shown.
Binary file added compressions/1/folder.zip
Binary file not shown.
24 changes: 0 additions & 24 deletions compressions/1/sdt-module.py

This file was deleted.

Binary file added compressions/1/submission.zip
Binary file not shown.
14 changes: 14 additions & 0 deletions compressions/1/submission_wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import numpy as np
from solardatatools import DataHandler


def detect_time_shifts(
time_series, latitude=None, longitude=None, data_sampling_frequency=None
):
dh = DataHandler(time_series.to_frame())
dh.run_pipeline(fix_shifts=True, verbose=False)
estimated = np.copy(dh.time_shift_analysis.s1)
estimated -= dh.time_shift_analysis.baseline
estimated -= dh.tz_correction
estimated *= -60
return estimated
Original file line number Diff line number Diff line change
@@ -1,40 +1,49 @@
{
"category_name": "time_shifts",
"function_name": "detect_time_shifts",
"comparison_type": "time_series",
"performance_metrics": [ "runtime", "mean_absolute_error" ],
"allowable_kwargs": [ "latitude", "longitude", "data_sampling_frequency" ],
"ground_truth_compare": [ "time_series" ],
"public_results_table": "time-shift-public-metrics.json",
"private_results_columns": [
"system_id",
"file_name",
"run_time",
"data_requirements",
"mean_absolute_error_time_series",
"data_sampling_frequency",
"issue"
],
"plots": [
{
"type": "histogram",
"x_val": "mean_absolute_error_time_series",
"color_code": "issue",
"title": "Time Series MAE Distribution by Issue",
"save_file_path": "mean_absolute_error_time_series_dist.png"
},
{
"type": "histogram",
"x_val": "mean_absolute_error_time_series",
"color_code": "data_sampling_frequency",
"title": "Time Series MAE Distribution by Sampling Frequency",
"save_file_path": "mean_absolute_error_time_series_dist.png"
},
{
"type": "histogram",
"x_val": "run_time",
"title": "Run Time Distribution",
"save_file_path": "run_time_dist.png"
}
]
"category_name": "time_shifts",
"function_name": "detect_time_shifts",
"comparison_type": "time_series",
"performance_metrics": [
"runtime",
"mean_absolute_error"
],
"allowable_kwargs": [
"latitude",
"longitude",
"data_sampling_frequency"
],
"ground_truth_compare": [
"time_series"
],
"public_results_table": "time-shift-public-metrics.json",
"private_results_columns": [
"system_id",
"file_name",
"run_time",
"data_requirements",
"mean_absolute_error_time_series",
"data_sampling_frequency",
"issue"
],
"plots": [
{
"type": "histogram",
"x_val": "mean_absolute_error_time_series",
"color_code": "issue",
"title": "Time Series MAE Distribution by Issue",
"save_file_path": "mean_absolute_error_time_series_dist.png"
},
{
"type": "histogram",
"x_val": "mean_absolute_error_time_series",
"color_code": "data_sampling_frequency",
"title": "Time Series MAE Distribution by Sampling Frequency",
"save_file_path": "mean_absolute_error_time_series_dist.png"
},
{
"type": "histogram",
"x_val": "run_time",
"title": "Run Time Distribution",
"save_file_path": "run_time_dist.png"
}
]
}
Loading

0 comments on commit 4cbc8aa

Please sign in to comment.