Skip to content

Commit

Permalink
2c PM - gaussian and benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
qnater committed Jan 8, 2025
1 parent 6afdcb2 commit 82165ce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
26 changes: 14 additions & 12 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified imputegap/recovery/__pycache__/manager.cpython-312.pyc
Binary file not shown.
3 changes: 1 addition & 2 deletions imputegap/runner_contamination.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
ts_1.normalize(normalizer="min_max")

# 3. contamination of the data with MCAR pattern
#incomp_data = ts_1.Contamination.mcar(ts_1.data, series_rate=0.2, missing_rate=0.2, seed=True)
incomp_data = ts_1.Contamination.gaussian(ts_1.data, series_rate=0.2, missing_rate=0.6, std_dev=0.9, seed=True)
incomp_data = ts_1.Contamination.mcar(ts_1.data, series_rate=0.2, missing_rate=0.2, seed=True)

# [OPTIONAL] you can plot your raw data / print the contamination
ts_1.print(limit_timestamps=12, limit_series=7)
Expand Down
2 changes: 1 addition & 1 deletion imputegap/runner_imputation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@

# 6. display the results
ts_3.print_results(cdrec.metrics, algorithm="cdrec")
ts_3.plot(input_data=ts_1.data, incomp_data=ts_2.data, recov_data=ts_3.data, subplot=True, save_path="./assets")
ts_3.plot(input_data=ts_1.data, incomp_data=ts_2.data, recov_data=ts_3.data, max_series=9, subplot=True, save_path="./assets")

0 comments on commit 82165ce

Please sign in to comment.