Replies: 6 comments 8 replies
-
about this repo 'https://github.com/qiboteam/qibo/tree/master/examples/anomaly_detection' |
Beta Was this translation helpful? Give feedback.
-
It seems pretty clear how the file is being loaded qibo/examples/anomaly_detection/train.py Lines 114 to 115 in d10c1e3 It is a NumPy-specific format, but NumPy is used widely enough to be a reasonably assumed dependency in Python code (and somewhat possible to load even beyond Python itself). I'm possibly missing the question |
Beta Was this translation helpful? Give feedback.
-
I wonder how you changed the csv file, which is a dataset, to the npy file. I'm trying to apply the below dataset here, but it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Converting a CSV file to NumPy format is simple with Python, and the only dependency you need is NumPy itself. Essentially: import numpy as np
np.save("ciao.npy", np.loadtxt("ciao.csv")) However, you do not have to do that. What you need is often an array in memory. If your original dataset is a CSV file, you can also keep it as it is, and just load with Just aim for the |
Beta Was this translation helpful? Give feedback.
-
I'm asking if you mean to use the csv file as it is, to change the part where the file path is called in the qibo-anomaly detection part. If possible, I'd like to ask if I can get an example and send you a dataset. ex) import pandas as pd
df = pd.read_csv("ciao.csv") |
Beta Was this translation helpful? Give feedback.
-
Or do I just need to change it through the code you gave me? When I researched the data, I asked you to confirm that you need to apply 'MinMaxScaler' to introduce it to qibo. Or I ask if you mean to do as below as you advised. file_dataset = LOCAL_FOLDER / "data" / "standard_data.csv" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder how you did it with the configured code when you changed the dataset to npy file. Looking forward to other people's help and advice.
Beta Was this translation helpful? Give feedback.
All reactions