Seach the website
Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Courses
Feedback
Recent questions and answers in Programming
0
0 votes
0
0 answers
1.4k
1.4k views
Which code has best runtime and why?(the one commented or the other one)
# for key, value in dict.items(): # if value >= long: # long = value # long_name = key # if value < sh...
someone_prog
120
points
1
1
3
asked
Sep 2, 2022
Python
python
+
–
0
0 votes
1
1 answer
1.8k
1.8k views
how to output f1-score instead of accuracy
I have the code below, outputting the accuracy. How can I output the F1-score instead? Thanks in advance,clf.fit(data_train,target_train) preds = clf.predict(data_test) #...
tofighi
116k
points
73
79
101
answered
Apr 2, 2022
Python
machine-learning
f1score
accuracy
+
–
0
0 votes
0
0 answers
989
989 views
I cannot get this code to work. please help.
from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from sklearn.model_selection import train_test_splitmodel = Sequential() ...
anonymous1200
120
points
1
1
3
asked
Mar 21, 2022
Python
machine-learning
data-science
neural-network
+
–
2
2 votes
1
1 answer
1.5k
1.5k views
What are the best resources for studying SQL?
I am wondering if anyone can suggest the best resources for studying SQL?
hmadhmadtt
140
points
2
answered
Jan 25, 2021
SQL
books
resources
data-science
sql
+
–
0
0 votes
0
0 answers
443
443 views
Looking for program to graph a network with 2 clusters.
I'm a PhD student using qualitative content analysis to look at a number of documents to identify a norm cluster. The structure of the norms I'm trying to look at is that...
WJWright
120
points
1
3
asked
Aug 28, 2020
Programming
programming
qualitative
+
–
1
1 vote
0
0 answers
527
527 views
How to print confusion matrix if I am using stratifiedkfold method?
Ziva
230
points
5
5
9
asked
Aug 6, 2020
Python
python
machine-learning
+
–
0
0 votes
0
0 answers
531
531 views
I am facing the error after importing torch module in python. How can I solve it? The error link is given below
https://ibb.co/MgXvrkL
Ziva
230
points
5
5
9
asked
Jul 31, 2020
Python
python
+
–
0
0 votes
0
0 answers
583
583 views
How to split into train and test using PKL file?
Ziva
230
points
5
5
9
asked
Jul 30, 2020
Python
machine-learning
+
–
0
0 votes
0
0 answers
525
525 views
Suggestion For Model
Ziva
230
points
5
5
9
asked
Jul 19, 2020
Python
pytorch
+
–
2
2 votes
1
1 answer
736
736 views
Please provide information about Certificate in Data Science at School of Continuing Studies, University of Toronto
I really appreciate you providing some details about data science certificate at UofT SCS, and enrollment dates.
kaADSS
230
points
2
2
6
answered
Jan 21, 2020
Programming
data-science
certificate-program
uoft
uoft-scs
+
–
1
1 vote
1
1 answer
1.8k
1.8k views
How to create def for cross_val_score related to linear regression problem?
def cross_val_score(estimator,X,y,scoring,cv): scores=cross_val_score scores_rmse=np.sqrt(-scores) print('Scores: ',scores_rmse) print("Mean:", scores_rms...
tofighi
116k
points
73
79
101
answered
Jul 7, 2019
Programming
linear-regression
+
–
0
0 votes
1
1 answer
707
707 views
What are some best features of Python3 in comparison to Python2?
Python3 and Python2 seems so similar, and the only changes which are obvious are some changes in functions such as print that now needs parentheses. Are there other impro...
tofighi
116k
points
73
79
101
answered
May 20, 2019
Python
python
syntax
python3
python2
comparison
+
–
1
1 vote
1
1 answer
1.2k
1.2k views
What are the best resources for studying Python?
What are the best resources for studying Python?
Moktart
240
points
1
1
4
answered
May 20, 2019
Python
books
resources
data-science
python
+
–
0
0 votes
1
1 answer
1.5k
1.5k views
How to convert equations in documents to LaTeX?
In Wikipedia, or any other document there are some math equations I am looking a simple way to convert to LaTeX. Is there any easy way for it?
tofighi
116k
points
73
79
101
answered
Apr 12, 2019
LaTeX
latex
math
ocr
+
–
0
0 votes
2
answers
2 answers
1.1k
1.1k views
Who can write a recursive Python program for Fibonacci sequence 0,1,1,2,3,5,8,...?
Please also check if the fibo(7) = 8
tofighi
116k
points
73
79
101
answered
Mar 22, 2019
Python
math
python
recursive
+
–
1
1 vote
1
1 answer
1.1k
1.1k views
How to use Watson Assistant V2 in my nodejs code?
I wanted to use Watson Assistant V2 in my following nodejs code, but it cannot be found and gave me error.var AssistantV2 = require('watson-developer-cloud/assistant/v2')...
tofighi
116k
points
73
79
101
answered
Feb 23, 2019
Javascript
watson-assistant
cognitive-computing
nodejs
+
–
0
0 votes
1
1 answer
631
631 views
How do I create comments in my code?
Neo
660
points
10
12
17
answered
Nov 2, 2018
Python
python
+
–
0
0 votes
1
1 answer
2.0k
2.0k views
If s='Sammy' what is the output of s[2:]?
wxeshetu
400
points
5
5
8
answered
Oct 29, 2018
Python
python
+
–
0
0 votes
1
1 answer
525
525 views
What are Decorators?
wxeshetu
400
points
5
5
8
answered
Oct 29, 2018
Python
python
+
–
0
0 votes
1
1 answer
614
614 views
What is a Magic class methods ?
wxeshetu
400
points
5
5
8
answered
Oct 29, 2018
Python
python
+
–
To see more, click for all the
questions in this category
.