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 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) #...
psil
120
points
1
1
3
asked
Apr 2, 2022
Python
machine-learning
f1score
accuracy
+
–
0
0 votes
0
0 answers
991
991 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
+
–
0
0 votes
0
0 answers
444
444 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
529
529 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
533
533 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
584
584 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
526
526 views
Suggestion For Model
Ziva
230
points
5
5
9
asked
Jul 19, 2020
Python
pytorch
+
–
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...
asifsundrani
130
points
1
1
4
asked
Jul 3, 2019
Programming
linear-regression
+
–
0
0 votes
1
1 answer
709
709 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
asked
May 20, 2019
Python
python
syntax
python3
python2
comparison
+
–
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
asked
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
asked
Mar 15, 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
asked
Feb 23, 2019
Javascript
watson-assistant
cognitive-computing
nodejs
+
–
0
0 votes
1
1 answer
527
527 views
What are Decorators?
wxeshetu
400
points
5
5
8
asked
Oct 29, 2018
Python
python
+
–
0
0 votes
1
1 answer
616
616 views
What is a Magic class methods ?
wxeshetu
400
points
5
5
8
asked
Oct 29, 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
asked
Oct 29, 2018
Python
python
+
–
0
0 votes
1
1 answer
633
633 views
How do I create comments in my code?
wxeshetu
400
points
5
5
8
asked
Oct 29, 2018
Python
python
+
–
1
1 vote
1
answers
1 answer
6.5k
6.5k views
Hey, anyone knows how to save workspace in jupyter python? I would like to save the variables and functions, etc.
xuxinc
230
points
2
2
5
asked
Oct 24, 2018
Python
python
jupyter-notebook
pickle
dill
+
–
1
1 vote
1
1 answer
679
679 views
ploting the xticks to be datatime
I have a dataframe like belowMT_001 MT_002 hour 2012-01-01 00:15:00 3.807107 22.759602 00:15:00 2012-01-01 00:30:00 5.076142 22.759602 00:30:00 2012-01-01 00:45:00 3.8071...
Neo
660
points
10
12
17
asked
Oct 19, 2018
Python
programming
python
plots
+
–
0
0 votes
1
1 answer
588
588 views
How can you tell a Python library is a good one and useful?
If a big company such as Google behind it, with high probability it is a great library such as TensorFlow. But in general how can I found out?
tofighi
116k
points
73
79
101
asked
Oct 18, 2018
Python
library
python
programming
+
–
Page:
1
2
next »