-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redux integration and error handling (#71)
* initial commit * added recommendations page | error handling | redux store * updated unit testing * added constant for GPU limit * removed recommendations page * removed console output
- Loading branch information
1 parent
520b3a5
commit 45a72b5
Showing
21 changed files
with
408 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
deepview-explore/react-ui/src/redux/slices/trainingScheduleSlice.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { createSlice } from "@reduxjs/toolkit"; | ||
|
||
const INITIAL_EPOCHS = 50; | ||
const INITIAL_ITER_PER_EPOCH = 2000; | ||
|
||
|
||
export const trainingScheduleSlice = createSlice({ | ||
name: "trainingScheduleSlice", | ||
initialState: { | ||
epochs: INITIAL_EPOCHS, | ||
iterPerEpoch: INITIAL_ITER_PER_EPOCH | ||
}, | ||
reducers: { | ||
setIterationsValues: (state, action) => { | ||
const {epochs,iterPerEpoch } = action.payload; | ||
state.epochs = epochs; | ||
state.iterPerEpoch = iterPerEpoch; | ||
}, | ||
}, | ||
}); | ||
|
||
export const {setIterationsValues} = trainingScheduleSlice.actions; | ||
|
||
export default trainingScheduleSlice.reducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {configureStore} from "@reduxjs/toolkit"; | ||
import trainingScheduleReducer from "../slices/trainingScheduleSlice"; | ||
|
||
export default configureStore({ | ||
reducer:{ | ||
trainingScheduleReducer | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.