zml
zml

Reputation: 51

loading dataset from csv file for keras in python

I'm trying to use keras with tensorflow to train a network. I've my own digit dataset of myanmar language. I'm trying to develop myanmar digits recognition using neural network using python. Firstly i want to load dataset from labeled train dataset .csv file. and also to load dataset from unlabeled test dataset .csv file. Problem is how to load these dataset from those dataset file. Please help me in detail explanation.

Upvotes: 2

Views: 1264

Answers (2)

Fasty
Fasty

Reputation: 804

Just do,

train_set = pd.read_csv("train_set.csv")

and similarly for test set as well!

Upvotes: 0

wz 98
wz 98

Reputation: 93

This is example of loading csv file into dataframe and you can do data engineer part and go through the neural network model.

import pandas as pd
label = ['digit1_','digit2_'....]

for i in label:
      train_set = pd.read_csv(i + 'trainset.csv')

test_set = pd.read_csv('testset.csv')

Is this what you mean?

Upvotes: 0

Related Questions