Recent questions in Python

0 0 votes
0 0 answers
1.7k
1.7k views
# for key, value in dict.items(): # if value >= long: # long = value # long_name = key # if value < sh...
0 0 votes
1 1 answer
2.2k
2.2k views
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) #...
0 0 votes
0 0 answers
1.2k
1.2k views
from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from sklearn.model_selection import train_test_splitmodel = Sequential() ...
1 1 vote
0 0 answers
672
672 views
0 0 votes
0 0 answers
751
751 views
0 0 votes
0 0 answers
752
752 views
0 0 votes
0 0 answers
851
851 views
0 0 votes
1 1 answer
1.0k
1.0k views
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...
0 0 votes
2 answers 2 answers
1.7k
1.7k views
Please also check if the fibo(7) = 8
0 0 votes
1 1 answer
825
825 views
0 0 votes
1 1 answer
907
907 views
0 0 votes
1 1 answer
2.3k
2.3k views
0 0 votes
1 1 answer
877
877 views
1 1 vote
1 1 answer
922
922 views
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...
0 0 votes
1 1 answer
848
848 views
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?
2 2 votes
2 2 answers
1.5k
1.5k views
Hello,I am trying to gain insight of the data but having hard time plotting it.Suppose I have a data frame like belowIDFeature 1Class1agood2agood3bgood4bbad5abad6abad7bba...
1 1 vote
0 0 answers
584
584 views
I made my own transformation to drop some of the features not required in the dataframe but I can't seem to get it working. Thoughts ?https://repl.it/@Neo_sauga/HarmfulNe...
2 2 votes
1 1 answer
1.1k
1.1k views
I am not sure why my below code is not working any thoughts ?https://repl.it/@Neo_sauga/UnselfishFatBrains