From ef4606aa06e270cece9c45cc935479f9a2d33545 Mon Sep 17 00:00:00 2001 From: RebeccaHisey Date: Mon, 16 Sep 2024 11:43:56 -0400 Subject: [PATCH] fixed typos --- DeepLearnLive/TrainNeuralNet/TrainNeuralNet.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DeepLearnLive/TrainNeuralNet/TrainNeuralNet.py b/DeepLearnLive/TrainNeuralNet/TrainNeuralNet.py index cad5dca..46bcdf1 100644 --- a/DeepLearnLive/TrainNeuralNet/TrainNeuralNet.py +++ b/DeepLearnLive/TrainNeuralNet/TrainNeuralNet.py @@ -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, @@ -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)): @@ -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, @@ -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], @@ -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], @@ -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],