Hi..Can anyone help me resolve the error with following piece of code below? [closed] The Next CEO of Stack Overflow2019 Community Moderator ElectionTrain/Test/Validation Set Splitting in SklearnValue Error: Operands could not be broadcast together with shapes - LSTMHelp with the following error: Variable already exists, disallowed. Did you mean to set reuse=True in VarScope?Getting the following error with my LSTM in RBest model for Machine LearningValueError: operands could not be broadcast together with shapes (60002,39) (38,) during pca.transformNon-linear Support Vector Regression issue - Sklearn Python 3.6What algorithm could be used to fuzzy merge multiple datasets?Can I do the below problem with ML?

Is fine stranded wire ok for main supply line?

How do I fit a non linear curve?

What would be the main consequences for a country leaving the WTO?

How to find image of a complex function with given constraints?

Is it correct to say moon starry nights?

Is it okay to majorly distort historical facts while writing a fiction story?

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Redefining symbol midway through a document

How to get the last not-null value in an ordered column of a huge table?

Purpose of level-shifter with same in and out voltages

Is there a difference between "Fahrstuhl" and "Aufzug"?

"Eavesdropping" vs "Listen in on"

Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank

Towers in the ocean; How deep can they be built?

Inexact numbers as keys in Association?

Is there an equivalent of cd - for cp or mv

Which one is the true statement?

Is dried pee considered dirt?

What steps are necessary to read a Modern SSD in Medieval Europe?

Man transported from Alternate World into ours by a Neutrino Detector

Strange use of "whether ... than ..." in official text

Aggressive Under-Indexing and no data for missing index



Hi..Can anyone help me resolve the error with following piece of code below? [closed]



The Next CEO of Stack Overflow
2019 Community Moderator ElectionTrain/Test/Validation Set Splitting in SklearnValue Error: Operands could not be broadcast together with shapes - LSTMHelp with the following error: Variable already exists, disallowed. Did you mean to set reuse=True in VarScope?Getting the following error with my LSTM in RBest model for Machine LearningValueError: operands could not be broadcast together with shapes (60002,39) (38,) during pca.transformNon-linear Support Vector Regression issue - Sklearn Python 3.6What algorithm could be used to fuzzy merge multiple datasets?Can I do the below problem with ML?










1












$begingroup$


from sklearn.svm import SVR

svr = SVR(kernel = "rbf")

svr.fit(X_train,Y_train)

Y_pred = sc_X.inverse_transform(svr.predict(X_test))


pd.DataFrame(Y_pred, columns = ['Price']).to_excel("Final_Pred.xlsx", index = False)

ValueError: operands could not be broadcast together with shapes (2671,) (12,) (2671,)









share|improve this question











$endgroup$



closed as off-topic by Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh Mar 25 at 12:09


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question does not appear to be about data science, within the scope defined in the help center." – Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh
If this question can be reworded to fit the rules in the help center, please edit the question.




















    1












    $begingroup$


    from sklearn.svm import SVR

    svr = SVR(kernel = "rbf")

    svr.fit(X_train,Y_train)

    Y_pred = sc_X.inverse_transform(svr.predict(X_test))


    pd.DataFrame(Y_pred, columns = ['Price']).to_excel("Final_Pred.xlsx", index = False)

    ValueError: operands could not be broadcast together with shapes (2671,) (12,) (2671,)









    share|improve this question











    $endgroup$



    closed as off-topic by Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh Mar 25 at 12:09


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "This question does not appear to be about data science, within the scope defined in the help center." – Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh
    If this question can be reworded to fit the rules in the help center, please edit the question.


















      1












      1








      1





      $begingroup$


      from sklearn.svm import SVR

      svr = SVR(kernel = "rbf")

      svr.fit(X_train,Y_train)

      Y_pred = sc_X.inverse_transform(svr.predict(X_test))


      pd.DataFrame(Y_pred, columns = ['Price']).to_excel("Final_Pred.xlsx", index = False)

      ValueError: operands could not be broadcast together with shapes (2671,) (12,) (2671,)









      share|improve this question











      $endgroup$




      from sklearn.svm import SVR

      svr = SVR(kernel = "rbf")

      svr.fit(X_train,Y_train)

      Y_pred = sc_X.inverse_transform(svr.predict(X_test))


      pd.DataFrame(Y_pred, columns = ['Price']).to_excel("Final_Pred.xlsx", index = False)

      ValueError: operands could not be broadcast together with shapes (2671,) (12,) (2671,)






      machine-learning machine-learning-model






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 24 at 13:54









      Simon Larsson

      53612




      53612










      asked Mar 24 at 12:06









      Vibhor SrivastavaVibhor Srivastava

      91




      91




      closed as off-topic by Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh Mar 25 at 12:09


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question does not appear to be about data science, within the scope defined in the help center." – Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh
      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh Mar 25 at 12:09


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question does not appear to be about data science, within the scope defined in the help center." – Ethan, Mark.F, Toros91, Simon Larsson, Siong Thye Goh
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          0






          active

          oldest

          votes

















          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          Marja Vauras Lähteet | Aiheesta muualla | NavigointivalikkoMarja Vauras Turun yliopiston tutkimusportaalissaInfobox OKSuomalaisen Tiedeakatemian varsinaiset jäsenetKasvatustieteiden tiedekunnan dekaanit ja muu johtoMarja VaurasKoulutusvienti on kestävyys- ja ketteryyslaji (2.5.2017)laajentamallaWorldCat Identities0000 0001 0855 9405n86069603utb201588738523620927

          Which is better: GPT or RelGAN for text generation?2019 Community Moderator ElectionWhat is the difference between TextGAN and LM for text generation?GANs (generative adversarial networks) possible for text as well?Generator loss not decreasing- text to image synthesisChoosing a right algorithm for template-based text generationHow should I format input and output for text generation with LSTMsGumbel Softmax vs Vanilla Softmax for GAN trainingWhich neural network to choose for classification from text/speech?NLP text autoencoder that generates text in poetic meterWhat is the interpretation of the expectation notation in the GAN formulation?What is the difference between TextGAN and LM for text generation?How to prepare the data for text generation task

          Is this part of the description of the Archfey warlock's Misty Escape feature redundant?When is entropic ward considered “used”?How does the reaction timing work for Wrath of the Storm? Can it potentially prevent the damage from the triggering attack?Does the Dark Arts Archlich warlock patrons's Arcane Invisibility activate every time you cast a level 1+ spell?When attacking while invisible, when exactly does invisibility break?Can I cast Hellish Rebuke on my turn?Do I have to “pre-cast” a reaction spell in order for it to be triggered?What happens if a Player Misty Escapes into an Invisible CreatureCan a reaction interrupt multiattack?Does the Fiend-patron warlock's Hurl Through Hell feature dispel effects that require the target to be on the same plane as the caster?What are you allowed to do while using the Warlock's Eldritch Master feature?