-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove contract * remove contract * set n_jobs in ROCKET variants * threaded rocket * switch to threaded DrCIF * switch to threaded DrCIF * switch to threaded DrCIF * add temp DrCIF to test Parallel options * add temp DrCIF to test Parallel options * revert * set train file flag correctly * iterate DrCIF over 30 Tiselac resamples * Switch to DrCIF with FaceDetection * DrCIF with FaceDetection * DrCIF with InsectWingbeatEq * comment on regression_experiments.py * adjust set_regressor.py * switch to HC2 EigenWorms * switch to HC2 EigenWorms * switch to HC2 EigenWorms * tweak scripts * switch output dir creation
- Loading branch information
1 parent
16f9bf3
commit 2af30a4
Showing
10 changed files
with
121 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""Hacky area to test shit out""" | ||
import time | ||
from sktime.datasets import load_from_tsfile | ||
from sktime.utils.sampling import stratified_resample | ||
from sktime.distances import dtw_distance | ||
import numpy as np | ||
instance1 = np.array([[1,2,3,4], [4,3,2,1]]) | ||
instance2 = np.array([[2,3,4,5], [5,4,3,2]]) | ||
print(" shape is [n_dimensions, series_length] = ", instance1.shape) | ||
print(" DTW_D is = ", dtw_distance(instance1, instance2)) | ||
|
||
|
||
def time_data_load(): | ||
dataset = ["InsectWingbeatEq"] | ||
for file in dataset: | ||
start = time.time() | ||
x, y = load_from_tsfile(f"C:/Data/{file}/{file}_TRAIN.ts") | ||
x2, y2 = load_from_tsfile(f"C:/Data/{file}/{file}_TEST.ts") | ||
end = time.time() | ||
print(f" Load pandas for problem {file} time taken = {end-start}") | ||
start = time.time() | ||
x, y, x2, y2 = stratified_resample(x, y, x2, y2, 1) | ||
end = time.time() | ||
print(f" resample time problem {file} time taken = {end-start}") | ||
# start = time.time() | ||
# x, y = load_from_tsfile(f"C:/Data/{file}/{file}_TRAIN.ts", | ||
# return_data_type="numpy3d") | ||
# x2, y2 = load_from_tsfile(f"C:/Data/{file}/{file}_TEST.ts", | ||
# return_data_type="numpy3d") | ||
# end = time.time() | ||
# print(f" Load numpy for problem {file} time taken = {end-start}") | ||
|
||
|
||
time_data_load() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
tf = bool("false") | ||
tf2 = bool("False") | ||
tf3 = bool("true") | ||
tf4 = bool("True") | ||
print(f" {tf} {tf2} {tf3} {tf4}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters