#Splitting up data

1 messages · Page 1 of 1 (latest)

static cedar
#

let x_train=(a list of images), let y_train=(a list of labels like [[age, gender], ..., [age, gender]]). Assuming you have a fairly balanced training set among age and gender, you can split them into a training and validation set. If using TF's sequential class, check the fit() function's arguments for where to do this. As for splitting the files into different directories, do you really need to do that?

#

I'd create a structure like
/dataset/train/
/dataset/validation/
and if the dataet you downloaded doesn't already split it for you, TF lets you do that in model.fit()

floral joltBOT
#

@split pivot has leveled up! (0 ➜ 1)

static cedar
static cedar
#

I don't know how to interpret that vertical blue line but everything else seems normal, loss goes down and accuracy goes up

#

for here it's just tweaking the hyperparameters to get the best result

static cedar
#

Check for class balance and that your labels are correctly made. It wouldn't make sense to validate on a set od 99 dogs and 1 cat.