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

          Rank groups within a grouped sequence of TRUE/FALSE and NAGrouping functions (tapply, by, aggregate) and the *apply familyCharacters counting and subletting specific patternsWhat is the purpose of setting a key in data.table?data.table vs dplyr: can one do something well the other can't or does poorly?how to make a bar plot for a list of dataframes?How to group by unique values in a list in RPandas - Alternative to rank() function that gives unique ordinal ranks for a columnRank within group in for loop in RData transformation: from dyadic to observational data in RGetting map from purrr to work with paste0

          Are all passive ability checks floors for active ability checks?Does passive perception supersede active perception?Which skills can be used passively?Active Opposition with Free-Form Professions in Fate5E Trap/Ambush/Stealth Mechanics VS Passive Perception ConfusionInteraction between perception and stealth in obscured conditionsHow does Keen Sight affect Passive Perception?Are all d20 rolls either attacks, saves or ability checks?Can players declare that they are making a specific ability check?Can I see a Hidden creature that is not obscured at all?Can a Stealth check ever be made passively?Is this alternate version of the Observant feat balanced?What is the minimum amount of skill points per HD?

          Quoting Keynes in a lectureIs differentiated instruction permitted by universities?How to make students learn prerequisitesUnsatisfactory Instructor Evaluations: balancing of expectations of engineering studentsWhat is the difference between a “statistician”, “applied statistician”, and an academic applying advanced stats within their field?Listing in reference section, but not quotingHow to efficiently use time while preparing for a class?Graduate Admissions: Teaching Emphasisstrategies for sharing teaching information with universities I don't personally have contacts withIs there an efficient way to give a large class of students feedback about their assignments?Is it unreasonable to expect students to read the lecture notes before attending the first class?