Closes #4 #9
@@ -36,6 +36,13 @@ class FeatureExtractor:
|
|||||||
result += f"{feature}: {value:.4f}\n"
|
result += f"{feature}: {value:.4f}\n"
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
def ExtractTimeFeatures(object):
|
||||||
|
data = pd.read_csv(object, skiprows=1)
|
||||||
|
extractor = FeatureExtractor(data.iloc[:, 1].values) # Assuming the data is in the second column
|
||||||
|
features = extractor.features
|
||||||
|
return features
|
||||||
|
# Save features to a file
|
||||||
|
# np.savez(output_file, **features)
|
||||||
# Usage
|
# Usage
|
||||||
# Assume you have a CSV file with numerical data in the first column
|
# Assume you have a CSV file with numerical data in the first column
|
||||||
# Create an instance of the class and pass the path to your CSV file
|
# Create an instance of the class and pass the path to your CSV file
|
||||||
|
|||||||
Reference in New Issue
Block a user