Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
c94738ad
Commit
c94738ad
authored
1 month ago
by
deep1401
Browse files
Options
Downloads
Patches
Plain Diff
Add tensorboard to evals
parent
8f860090
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/renderer/components/Experiment/Eval/EvalJobsTable.tsx
+22
-2
22 additions, 2 deletions
src/renderer/components/Experiment/Eval/EvalJobsTable.tsx
src/renderer/components/Experiment/Eval/EvalModal.tsx
+1
-1
1 addition, 1 deletion
src/renderer/components/Experiment/Eval/EvalModal.tsx
with
23 additions
and
3 deletions
src/renderer/components/Experiment/Eval/EvalJobsTable.tsx
+
22
−
2
View file @
c94738ad
...
@@ -16,11 +16,13 @@ import {
...
@@ -16,11 +16,13 @@ import {
FileDigitIcon
,
FileDigitIcon
,
Grid3X3Icon
,
Grid3X3Icon
,
Trash2Icon
,
Trash2Icon
,
LineChartIcon
,
Type
,
Type
,
}
from
'
lucide-react
'
;
}
from
'
lucide-react
'
;
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
useState
,
useEffect
}
from
'
react
'
;
import
useSWR
from
'
swr
'
;
import
useSWR
from
'
swr
'
;
import
*
as
chatAPI
from
'
../../../lib/transformerlab-api-sdk
'
;
import
*
as
chatAPI
from
'
../../../lib/transformerlab-api-sdk
'
;
import
TensorboardModal
from
'
../Train/TensorboardModal
'
;
import
ViewOutputModalStreaming
from
'
./ViewOutputModalStreaming
'
;
import
ViewOutputModalStreaming
from
'
./ViewOutputModalStreaming
'
;
import
ViewCSVModal
from
'
./ViewCSVModal
'
;
import
ViewCSVModal
from
'
./ViewCSVModal
'
;
import
ViewPlotModal
from
'
./ViewPlotModal
'
;
import
ViewPlotModal
from
'
./ViewPlotModal
'
;
...
@@ -96,8 +98,8 @@ const EvalJobsTable = () => {
...
@@ -96,8 +98,8 @@ const EvalJobsTable = () => {
const
[
openPlotModal
,
setOpenPlotModal
]
=
useState
(
false
);
const
[
openPlotModal
,
setOpenPlotModal
]
=
useState
(
false
);
const
[
currentJobId
,
setCurrentJobId
]
=
useState
(
''
);
const
[
currentJobId
,
setCurrentJobId
]
=
useState
(
''
);
const
[
currentScore
,
setCurrentScore
]
=
useState
(
''
);
const
[
currentScore
,
setCurrentScore
]
=
useState
(
''
);
const
[
fileNameForDetailedReport
,
setFileNameForDetailedReport
]
=
const
[
currentTensorboardForModal
,
setCurrentTensorboardForModal
]
=
useState
(
-
1
);
useState
(
''
);
const
[
fileNameForDetailedReport
,
setFileNameForDetailedReport
]
=
useState
(
''
);
const
fetchCSV
=
async
(
jobId
)
=>
{
const
fetchCSV
=
async
(
jobId
)
=>
{
const
response
=
await
fetch
(
const
response
=
await
fetch
(
...
@@ -151,6 +153,10 @@ const EvalJobsTable = () => {
...
@@ -151,6 +153,10 @@ const EvalJobsTable = () => {
setFileName
=
{
setFileNameForDetailedReport
}
setFileName
=
{
setFileNameForDetailedReport
}
fileName
=
{
fileNameForDetailedReport
}
fileName
=
{
fileNameForDetailedReport
}
/>
/>
<
TensorboardModal
currentTensorboard
=
{
currentTensorboardForModal
}
setCurrentTensorboard
=
{
setCurrentTensorboardForModal
}
/>
<
Box
<
Box
sx
=
{
{
sx
=
{
{
display
:
'
flex
'
,
display
:
'
flex
'
,
...
@@ -172,6 +178,8 @@ const EvalJobsTable = () => {
...
@@ -172,6 +178,8 @@ const EvalJobsTable = () => {
</
Typography
>
</
Typography
>
)
}
)
}
</
Box
>
</
Box
>
<
Typography
level
=
"h3"
>
Executions
</
Typography
>
<
Sheet
sx
=
{
{
overflowY
:
'
scroll
'
}
}
>
<
Sheet
sx
=
{
{
overflowY
:
'
scroll
'
}
}
>
<
Table
stickyHeader
>
<
Table
stickyHeader
>
<
thead
>
<
thead
>
...
@@ -285,6 +293,18 @@ const EvalJobsTable = () => {
...
@@ -285,6 +293,18 @@ const EvalJobsTable = () => {
variant
=
"soft"
variant
=
"soft"
sx
=
{
{
justifyContent
:
'
flex-end
'
}
}
sx
=
{
{
justifyContent
:
'
flex-end
'
}
}
>
>
{
job
?.
job_data
?.
tensorboard_output_dir
&&
(
<
Button
size
=
"sm"
variant
=
"plain"
onClick
=
{
()
=>
{
setCurrentTensorboardForModal
(
job
?.
id
);
}
}
startDecorator
=
{
<
LineChartIcon
/>
}
>
Tensorboard
</
Button
>
)
}
<
Button
<
Button
onClick
=
{
()
=>
{
onClick
=
{
()
=>
{
setViewOutputFromJob
(
job
?.
id
);
setViewOutputFromJob
(
job
?.
id
);
...
...
This diff is collapsed.
Click to expand it.
src/renderer/components/Experiment/Eval/EvalModal.tsx
+
1
−
1
View file @
c94738ad
...
@@ -287,7 +287,7 @@ export default function EvalModal({
...
@@ -287,7 +287,7 @@ export default function EvalModal({
}
else
{
}
else
{
console
.
log
(
'
formJson:
'
,
formJson
);
console
.
log
(
'
formJson:
'
,
formJson
);
const
template_name
=
formJson
.
template_name
;
const
template_name
=
formJson
.
template_name
;
delete
formJson
.
template_name
;
//
delete formJson.template_name;
const
result
=
await
chatAPI
.
EXPERIMENT_ADD_EVALUATION
(
const
result
=
await
chatAPI
.
EXPERIMENT_ADD_EVALUATION
(
experimentInfo
?.
id
,
experimentInfo
?.
id
,
template_name
,
template_name
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment