Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaHisey committed Sep 16, 2024
1 parent 212627a commit ef4606a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DeepLearnLive/TrainNeuralNet/TrainNeuralNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def createCSV(self):
self.availableIndexes.append(self.availableImages)
for i in range(0,len(self.Labels)):
temp[self.Labels[i]] = [trainSamples[self.Labels[i]][x] for x in trainSamples.index]
csvDataFrame = pandas.concat([csvDataFrame, pandas.Dataframe(temp)])
csvDataFrame = pandas.concat([csvDataFrame, pandas.DataFrame(temp)])

'''csvDataFrame = csvDataFrame.append({"Fold": fold,
"Set": setType,
Expand Down Expand Up @@ -998,7 +998,7 @@ def createCSV(self):
self.availableIndexes[j] = self.availableImages
for i in range(0,len(self.Labels)):
temp[self.Labels[i]] = [valSamples[self.Labels[i]][x] for x in valSamples.index]
csvDataFrame = pandas.concat([csvDataFrame, pandas.Dataframe(temp)])
csvDataFrame = pandas.concat([csvDataFrame, pandas.DataFrame(temp)])


'''for row in range(0, len(labelCSV.index)):
Expand Down Expand Up @@ -1028,7 +1028,7 @@ def createCSV(self):
temp["FileName"] = [testSamples["FileName"][i] for i in testSamples.index]
for i in range(0,len(self.Labels)):
temp[self.Labels[i]] = [testSamples[self.Labels[i]][x] for x in testSamples.index]
csvDataFrame = pandas.concat([csvDataFrame, pandas.Dataframe(temp)])
csvDataFrame = pandas.concat([csvDataFrame, pandas.DataFrame(temp)])
'''for row in range(0, len(labelCSV.index)):
csvDataFrame = csvDataFrame.append({"Fold": fold,
"Set": setType,
Expand Down Expand Up @@ -1068,7 +1068,7 @@ def createCSVFromGirder(self):
fileID = file["_id"]
fileName = file["name"]
if not ".csv" in fileName:
csvDataFrame = pandas.concat([csvDataFrame, pandas.Dataframe({"Fold": [fold],
csvDataFrame = pandas.concat([csvDataFrame, pandas.DataFrame({"Fold": [fold],
"Set": [setType],
"Girder_URL": [self.girderURL],
"Collection_Name": [self.collectionName],
Expand Down Expand Up @@ -1099,7 +1099,7 @@ def createCSVFromGirder(self):
fileID = file["_id"]
fileName = file["name"]
if not ".csv" in fileName:
csvDataFrame = pandas.concat([csvDataFrame, pandas.Dataframe({"Fold": [fold],
csvDataFrame = pandas.concat([csvDataFrame, pandas.DataFrame({"Fold": [fold],
"Set": [setType],
"Girder_URL": [self.girderURL],
"Collection_Name": [self.collectionName],
Expand Down Expand Up @@ -1129,7 +1129,7 @@ def createCSVFromGirder(self):
fileID = file["_id"]
fileName = file["name"]
if not ".csv" in fileName:
csvDataFrame = pandas.concat([csvDataFrame, pandas.Dataframe({"Fold": [fold],
csvDataFrame = pandas.concat([csvDataFrame, pandas.DataFrame({"Fold": [fold],
"Set": [setType],
"Girder_URL": [self.girderURL],
"Collection_Name": [self.collectionName],
Expand Down

0 comments on commit ef4606a

Please sign in to comment.