alexyev / pennylane_projects

0 stars 0 forks source link

state preparation for 10 features in each image #1

Open pooryousefshahrooz opened 1 year ago

pooryousefshahrooz commented 1 year ago

Hi, Thank you for your training jupyter notebooks. I am learning a lot from them.

I am trying to use your jupyter notebook to design a binary classifier like what you have developed for the IRIS data set. The thing is my input images each have around 10 features and it seems you only use the first two features of the image. Can you please help me modify your code for the case we have a vector of 10 values for each image and want to have a binary classifier? I have difficulty in the state preparation part. I am not sure how I would consider more features. Would it be the number of angles? the number of rotations?! I have no clue :)

Best, Shahrooz

alexyev commented 1 year ago

Hey Shahrooz, could you help me out by pointing out which classification file you're looking at? Thanks!

pooryousefshahrooz commented 1 year ago

Hey Alexander, sorry for my late reply. Yes. So I am trying to use the classifier presented here which basically is a variational classifier. I noticed that I have confused between your variational classifier code and Maria's classifier :). But, anyway. I hope you'll be able to help me with this. I am using the second part of her classification (iris classification). I think Maria has used the first two features in the input image (from the Iris dataset ) in the state preparation. I am having a hard time learning how to prepare the state using say k features. In my setting k is 10 and each item in my vector can get values in the range [0,1].

Thanks in advance for your help and time.