Adds a file to the store of datasets
file
: File part of post request (sent via a multipart/form-data form)
splitFileInfo[0]
-> The first "token" of the filename delimited by "."
or if the database call returns one or 0 files
"error"
Returns the "store" of the dataset
None (plain GET
request)
responseData
-> A JSON object representing the first result for "store".
Adds a row to a given file in the dataset.
{
fileName: <FILENAME_TO_ADD_ROW_FOR>,
columnData: <ARRAY_OF_COLUMNS_FOR_EACH_COLUMN_IN_THE_ROW>,
rowData: <ARRAY_OF_TITLES>
}
The backend will check to see if the column title (of the current column being iterated over) is specified in
rowData
.
"Done"
Updates the row to a given file in the dataset.
{
fileName: <FILENAME_TO_EDIT_ROW_FOR>,
columnData: <ARRAY_OF_COLUMNS_FOR_EACH_COLUMN_IN_THE_ROW>,
newRowData: <ARRAY_OF_TITLES>
}
The backend will check to see if the column title (of the current column being iterated over) is specified in the new row data,
newRowData
.
"Done"
Deletes the row for a given file from the dataCsv.
{
fileName: <FILENAME_OF_FILE_WE_WANT_TO_DELETE>,
columnData: <ARRAY_OF_COLUMNS_FOR_EACH_COLUMN_IN_THE_ROW>,
oldRowData: <ARRAY {
tableData: {
id
}
}>
}
The backend will check to see if there is a matching id and will drop it.
"Done"
Deletes checked columns for a given file from the dataCsv.
{
fileName: <FILENAME_OF_FILE_WE_WANT_TO_MODIFY>,
columnData: <ARRAY_OF_COLUMNS_FOR_EACH_COLUMN_IN_THE_ROW {
checked,
title
}>,
oldRowData: <ARRAY {
tableData: {
id
}
}>
}
The backend will check for all columns that are "checked" and drop them.
responseData
-> File from dataset
Downloads the CSV for the user.
{
fileName: <FILENAME_OF_FILE_WE_WANT_TO_DOWNLOAD>,
}
CSV for File -> Browser gets returned the file with fullFileName
as its name
Edits experiment configurations depending on request.
{
fileName: <FILENAME_OF_FILE_WE_WANT_TO_CONFIG>,
features: <ARRAY_OF_FEATURES {
checked,
title
}>,
labels: <ARRAY_OF_LABELS {
checked,
title
},
trainPercentage: <PERCENTAGE>
}
"done"
Gets all of the dataset files and their information in a JSON format
None
The entire dataset
in JSON form