Trending questions in Edureka Community

0 votes
0 answers

I am trying to create one Machine Learning model using LinearRegression model, but I am getting the below error.

 training data (input and output) for Measuring temperature using crickets x_train =[44.000,46.400,43.600,35.000,35.000,32.600,28.900,27.700,25.500,20.375,12.500,37.000,37.500,36.500,36.200] #Cricket Chirp per 1 y_train =[80.500,78.500,78.000,73.500,70.500,68.000,66.000,65.000,61.500,57.000,55.000,76.250,74.000,74.000,72.500]  # Temp in F  Training based on training data (input and output) for Measuring temperature using crickets x=x_train y=y_train opt = np.polyfit(x, y, 1) y_pred = int(opt[0]) * x + opt[1] opt_rmse = math.sqrt(metrics.mean_squared_error(y_pred, y)) slope = opt[0] bias = opt[1] #print("y_pred", y_pred, "y ", y) print("Optimal Training RMSE =", opt_rmse, "for solution", opt) the error is ValueError: Found input variables with ...READ MORE

Sep 2, 2021 in Machine Learning by anonymous

edited Mar 4 78 views
0 votes
1 answer

Error: No module named 'findspark'

Hi@akhtar, To import this module in your program, ...READ MORE

May 6, 2020 in Apache Spark by MD
• 95,460 points
20,921 views
0 votes
1 answer

How can I use jquery $.ajax to call a PHP function?

Hello @kartik, Use $.ajax to call a server context (or ...READ MORE

Aug 27, 2020 in PHP by Niroj
• 82,840 points
16,018 views
0 votes
1 answer

what is the $(document).ready equivalent without jQuery?

Hello @kartik, There are three options: If script is the last ...READ MORE

Apr 2, 2020 in Java-Script by Niroj
• 82,840 points
22,372 views
+1 vote
1 answer
0 votes
0 answers

IndentationError: expected an indented block, while executing elbow method

K = range(1,10) sum_sq_dst = [] for k in ...READ MORE

Sep 1, 2021 in Python by Edureka

edited Mar 4 43 views
0 votes
2 answers

How do I set the figure title and axes labels font size in Matplotlib?

Setting the font size of the figure ...READ MORE

Jan 4, 2021 in Python by Nikita
10,294 views
0 votes
1 answer

How to make $.post() use contentType=application/json in jquery?

Hii, Try this: $.ajax({ url:url, type:"POST", ...READ MORE

Nov 24, 2020 in JQuery by Niroj
• 82,840 points
12,102 views
0 votes
1 answer

Error:Failed to start redis.service Unit redis-server.service is masked

Hello, If redis.service file is missed in directory path /etc/systemd/system/redis.service so we ...READ MORE

May 18, 2020 in Docker by Niroj
• 82,840 points
20,305 views
0 votes
2 answers

How to disable or reset security settings in Jenkins?

In your local jenkins folder cat  /var/lib/jenkins/secrets/initialauthenticationpassword ...READ MORE

Feb 22, 2021 in Jenkins by srini

edited Mar 5 21,392 views
0 votes
1 answer

Error: Cannot find module 'mongodb'

Hello @kartik, The error you are getting indicates ...READ MORE

Oct 15, 2020 in Node-js by Niroj
• 82,840 points
13,803 views
0 votes
1 answer

How to get the current branch name in Git?

Hi@akhtar, You can run the git branch command ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,460 points
10,857 views
0 votes
1 answer

UnicodeDecodeError: "utf-8" codec can"t decode byte 0xeb in position 8: unexpected end of data

To read this dataset use encoding as ...READ MORE

Jul 15, 2019 in Python by Rishi
33,560 views
+4 votes
2 answers

Can we get the HTTP Response Code in Selenium with Java?

It is indeed possible to get http ...READ MORE

Apr 21, 2018 in Selenium by king_kenny
• 3,710 points
42,747 views
0 votes
1 answer

JNLP agent port is disabled and agents cannot connect this way. Go to security configuration screen and change it.

Hi@MD, By default JNLP agent port is disabled ...READ MORE

May 29, 2020 in Jenkins by akhtar
• 38,260 points
19,729 views
0 votes
1 answer

How to access a dictionary element in a Django template?

Hello @kartik, Use Dictionary Items: {% for key, value ...READ MORE

Jul 3, 2020 in Python by Niroj
• 82,840 points
18,177 views
0 votes
2 answers

How to call perl script in Python script?

If you just want to open a ...READ MORE

Oct 7, 2020 in Python by Reshma
14,031 views
0 votes
1 answer

How to install Azure CLI with yum?

Hi@akhtar, For Linux distributions with yum such as RHEL, Fedora, ...READ MORE

Nov 13, 2020 in Azure by MD
• 95,460 points
12,441 views
0 votes
0 answers

Which of the below command used to remove a broadcast variable, "bvar", from memory?

Q1.Which of the below command used to ...READ MORE

Aug 27, 2021 in Data Analytics by Vipul

edited Mar 4 60 views
0 votes
3 answers

What are the roles of a data scientist

What are the roles of a data ...READ MORE

Feb 17, 2023 in Career Counselling by Nasir

edited Mar 5 10,408 views
0 votes
0 answers

Which of the following is true of running a Spark application on Hadoop YARN?

Q12.Which of the following is true of ...READ MORE

Aug 27, 2021 in Data Analytics by Vipul

edited Mar 4 58 views
0 votes
0 answers

How do I solve this error from my code? KeyError: "['Date' 'Adj Close'] not found in axis"

#import libraries: import numpy as np import streamlit as ...READ MORE

Aug 26, 2021 in Machine Learning by anonymous

edited Mar 4 112 views
0 votes
0 answers

Hey Guys I really wants to learn and be Business analyst, I don't have funds to pay for

Hey Guys I really wants to learn ...READ MORE

Aug 26, 2021 in Data Analytics by Parambir

edited Mar 4 62 views
0 votes
0 answers

Single-Single Microservices deployment with database via Jenkins pipleline

I have 3 microservices with 3 database. ...READ MORE

Aug 25, 2021 in DevOps & Agile by Neha

edited Mar 4 50 views
0 votes
4 answers

Install Python3 on Mac

Prerequisites You will need a macOS computer with ...READ MORE

Dec 15, 2020 in Python by Roshni
• 10,480 points
20,028 views
+1 vote
0 answers

Get filename from Outlook attachment

Hi everyone! I want to automate a process ...READ MORE

Sep 25, 2020 in RPA by RandomDude
• 260 points
2,791 views
0 votes
0 answers

List in table by count no of frequency of specific items used

I have a table with member no ...READ MORE

Aug 23, 2021 in Power BI by Paula

edited Mar 4 67 views
0 votes
1 answer

Can we run multiple instances simultaneously with Selenium WebDriver?

hi.Have you find any solution ? READ MORE

Jan 4, 2023 in Selenium by haf

edited Mar 5 16,170 views
0 votes
3 answers

2) Which of the following are applicable to Bigdata technologies(Select all applicable)

Replication, transaction processing READ MORE

Nov 25, 2021 in Data Analytics by anonymous
3,554 views
0 votes
1 answer

Error saying "No apt package "kubeadm", but there is a snap with that name. Try "snap install kubeadm""

After adding gpg key and repositories, you ...READ MORE

Apr 16, 2022 in Kubernetes by Prashanth5429

edited Mar 5 11,012 views
0 votes
2 answers

Error:Failed to open stream: Permission denied in Laravel?

I had this problem lately with my ...READ MORE

Nov 4, 2020 in Laravel by anonymous
• 140 points
17,218 views
0 votes
1 answer

How to create a laravel hashed password?

Hello @kartik, Hashing A Password Using Bcrypt in Laravel: $password ...READ MORE

Oct 6, 2020 in Web Development by Niroj
• 82,840 points
13,845 views
0 votes
1 answer

Error:Django TemplateSyntaxError - 'staticfiles' is not a registered tag library

Hello @kartik, Try {% load static %} instead of {% load ...READ MORE

Jul 29, 2020 in Python by Niroj
• 82,840 points
16,803 views
+1 vote
1 answer

ssh: connect to host localhost port 22: Connection refused in Hadoop.

Hi@akhtar, You need to uninstall SSH and reinstall ...READ MORE

Dec 18, 2020 in Big Data Hadoop by MD
• 95,460 points
10,630 views
0 votes
1 answer

How to receive JSON POST with PHP?

Hello @kartik, Try; $data = json_decode(file_get_contents('php://input'), true); print_r($data); echo $data["operacion"]; From your ...READ MORE

Sep 14, 2020 in PHP by Niroj
• 82,840 points
14,759 views
0 votes
1 answer

How to Stop observable.timer in Angular?

Hello @kartik, There're are basically two ways: call unsubscribe() on the ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,840 points
14,987 views
0 votes
0 answers

[Errno 11001] getaddrinfo failed

I am getting the error : [Errno 11001] ...READ MORE

Aug 20, 2021 in Python by RICHA
• 140 points

edited Mar 4 61 views
0 votes
0 answers

Unable to select the dropdown list

In the dropdown list, the Edition element ...READ MORE

Aug 19, 2021 in Selenium by Edureka

edited Mar 4 68 views
0 votes
0 answers
0 votes
8 answers

Which is the better IT hub in India, Bangalore or Chennai?

I will choose Chennai because The living ...READ MORE

Jun 21, 2022 in Career Counselling by Jeev

edited Mar 5 13,181 views
0 votes
1 answer

"msg": "Failed to connect to the host via ssh: root@192.168.0.179: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",

Hi@akhtar, You need to pass the username and ...READ MORE

Jul 28, 2020 in Ansible by MD
• 95,460 points
16,694 views
0 votes
1 answer

How to post the parameter in ajax call of jquery datatable?

Hello @kartik, Just pass it like a normal ...READ MORE

Jun 16, 2020 in PHP by Niroj
• 82,840 points
18,479 views
+1 vote
2 answers

Which is not considered as iot application ?

smart subway READ MORE

Aug 28, 2020 in IoT (Internet of Things) by phyoe lay
18,123 views
0 votes
1 answer

How to trigger jquery.ajax() error callback based on server response, not HTTP 500?

Hello @kartik, The error callback will be executed ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,840 points
18,392 views
0 votes
2 answers

I'm getting the error;;net::ERR_CONNECTION_REFUSED

Hello @ sodash, Try to edit .env APP_URL to your ...READ MORE

Aug 24, 2020 in Web Development by Niroj
• 82,840 points
15,519 views
0 votes
1 answer

Could not find a version that satisfies the requirement ipykernel (from jupyter==1.0.0) (from versions: )

Hi@akhtar, You may get this error because of ...READ MORE

Apr 23, 2020 in Linux Administration by MD
• 95,460 points
20,791 views
0 votes
0 answers

How can i transfer eth automotically in some seconds (from one address to another)

How can I transfer ETH automatically from ...READ MORE

Aug 17, 2021 in Blockchain by Epic

edited Mar 4 47 views