Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Classifying images using trained model
Post: RE: Classifying images using trained model
Okay, I just realized that the aforementioned code only processes a single batch of 32 images. But how do I run multiple batches for large number of files?.. Back to the drawing board. Feedback is wel... |
|
kiton |
Data Science |
2 |
1,657 |
Dec-08-2020, 04:50 AM |
|
|
Thread: Classifying images using trained model
Post: RE: Classifying images using trained model
I think I figured out the solution:
new_dir = os.path.join(PATH, 'New') # make sure there is at least one class sub-folder
new_dataset = image_dataset_from_directory(new_dir, shuffle=True, batch_siz... |
|
kiton |
Data Science |
2 |
1,657 |
Dec-08-2020, 04:17 AM |
|
|
Thread: Classifying images using trained model
Post: Classifying images using trained model
Hello!
I have followed this TensorFlow tutorial to classify images using transfer learning approach. Using almost 16,000 classified images (with about 40/60 split of 1/0) I as able to achieve 95% acc... |
|
kiton |
Data Science |
2 |
1,657 |
Dec-03-2020, 04:57 PM |
|
|
Thread: SIR Model: Saving predicted value
Post: RE: SIR Model: Saving predicted value
The solution is:
vals=[]
for n, i, r in zip(df["N"], df["I0"], df["R0"]):
N = n
I0, R0 = i, r
S0 = N - I0 - R0
beta, gamma = 0.4, 1./15
t = np.linspace(0, 160, 160)
def deri... |
|
kiton |
General Coding Help |
3 |
1,747 |
Apr-12-2020, 08:58 PM |
|
|
Thread: SIR Model: Saving predicted value
Post: RE: SIR Model: Saving predicted value
Okay, say I do:
import pandas as pd
import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
df = pd.read_csv('params_temp.csv', index_col = 'FIPS', encoding="utf-8”)
f... |
|
kiton |
General Coding Help |
3 |
1,747 |
Apr-12-2020, 05:42 PM |
|
|
Thread: SIR Model: Saving predicted value
Post: RE: SIR Model: Saving predicted value
Say, I do:
element=I[6]
print(element)Then how do I save the result in a column in a table? I have no clue :( Feedback is greatly appreciated. |
|
kiton |
General Coding Help |
3 |
1,747 |
Apr-12-2020, 04:29 PM |
|
|
Thread: SIR Model: Saving predicted value
Post: SIR Model: Saving predicted value
Hello!
I am experimenting with SIR model for spread of disease using the following code. In particular, at each iteration I feed in different N, I0, and R0 values in the model from the CSV file. For ... |
|
kiton |
General Coding Help |
3 |
1,747 |
Apr-11-2020, 03:59 PM |
|
|
Thread: os.walk does not see files that are in the folder
Post: os.walk does not see files that are in the folder
Hello!
I used the following code some time ago for a project involving parsing tweets. Now, I want to extract more features associated with those tweets and re-running it on the same files I parsed b... |
|
kiton |
General Coding Help |
1 |
2,956 |
Jan-19-2020, 01:27 AM |
|
|
Thread: Logistic regression with Tensorflow
Post: RE: Logistic regression with Tensorflow
I am still trying to figure out the answer to my question. Is it something with me not being able to understand a seemingly simple thing? Or is it something else associated with complexity of the code... |
|
kiton |
Data Science |
1 |
2,520 |
Nov-28-2018, 07:34 PM |
|
|
Thread: Logistic regression with Tensorflow
Post: Logistic regression with Tensorflow
Hello dear forum members,
I am having difficulty understanding how I can feed my own data into a neural network after training it and validating. I am following example provided here. I have no probl... |
|
kiton |
Data Science |
1 |
2,520 |
Nov-26-2018, 04:17 AM |
|
|
Thread: Saving PyTorch model
Post: RE: Saving PyTorch model
It appears that this particular example cannot in fact be saved as a trained model. Here one person states "As far as I know, we cannot save a sklearn wrapped keras model. We must use the Keras API di... |
|
kiton |
Data Science |
3 |
4,168 |
Nov-24-2018, 01:38 AM |
|
|
Thread: Saving PyTorch model
Post: RE: Saving PyTorch model
Larz60+ Thank you for response. My knowledge of python is limited. No, this is not an assignment. I have no problem saving the resulting data into the CSV. What I am struggling with is saving a PyTorc... |
|
kiton |
Data Science |
3 |
4,168 |
Nov-23-2018, 05:22 PM |
|
|
Thread: Saving PyTorch model
Post: Saving PyTorch model
Hello dear forum members,
I am following the example of binary classification problem provided by Numerai competition (https://www.kaggle.com/solomonk/pytorch-...sification). I was able to successful... |
|
kiton |
Data Science |
3 |
4,168 |
Nov-23-2018, 04:52 PM |
|
|
Thread: Keras: tweets classicifcation
Post: Keras: tweets classicifcation
Hello dear forum members,
I have a data set of 20 Million randomly collected individual tweets (no two tweets come from the same account). Let me refer to this data set as "general" data set. Also, I... |
|
kiton |
Data Science |
0 |
2,309 |
Nov-14-2018, 03:19 PM |
|
|
Thread: Watson Personality Insight: minimum number of words
Post: Watson Personality Insight: minimum number of word...
Hello dear forum members,
I currently have a task of running about 9,000 files through IBM Watson Personality Insight api. To do this, together with my colleague we created the following code (see be... |
|
kiton |
General Coding Help |
0 |
2,700 |
Apr-28-2018, 03:28 PM |
|
|
Thread: Saving data from each row into separate txt
Post: RE: Saving data from each row into separate txt
zivoni, you are a mega mind -- thank you so much for your help. Your code initially resulted in the Error:Error: field larger than field limit (131072) But I found a quick solution to that by running ... |
|
kiton |
Data Science |
7 |
11,276 |
Jul-05-2017, 03:04 AM |
|
|
Thread: Saving data from each row into separate txt
Post: RE: Saving data from each row into separate txt
zivoni, DeaD_Eye, thank you for your feedback. So, I am trying the solution suggested by Dead_Eye and it seems to do the job. However, the issue is that the file name of each newly created txt appears... |
|
kiton |
Data Science |
7 |
11,276 |
Jul-04-2017, 06:15 PM |
|
|
Thread: Saving data from each row into separate txt
Post: RE: Saving data from each row into separate txt
Dear wavic, I am thankful for the code you provided above. It worked fine for me during tests in the following form:
with open('file.csv', 'r') as in_file: #note it's a CSV
while in_file.readline(... |
|
kiton |
Data Science |
7 |
11,276 |
Jul-04-2017, 06:45 AM |
|
|
Thread: FCC API: addressing unexpected error
Post: RE: FCC API: addressing unexpected error
So, I assume that the error might originate from the fact that FCC API is not "suitable" for python 3 (as it does not run with -python3-), but is ok for python2 (runs under -python-). Therefore, I (a)... |
|
kiton |
Data Science |
8 |
5,766 |
Jun-29-2017, 07:44 PM |
|
|
Thread: FCC API: addressing unexpected error
Post: RE: FCC API: addressing unexpected error
snippsat, I appreciate your response. Here are some comments in relation to yours:
1. I am not sure how to show you the import code (since I never see it when importing). How can I do that?
2. Indee... |
|
kiton |
Data Science |
8 |
5,766 |
Jun-28-2017, 06:21 PM |