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
96e37458
Commit
96e37458
authored
1 month ago
by
deep1401
Browse files
Options
Downloads
Patches
Plain Diff
Make the task tab better to show metrics and dataset being used for each task
parent
f9b24ff9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/renderer/components/Experiment/Eval/EvalTasksTable.tsx
+26
-2
26 additions, 2 deletions
src/renderer/components/Experiment/Eval/EvalTasksTable.tsx
with
26 additions
and
2 deletions
src/renderer/components/Experiment/Eval/EvalTasksTable.tsx
+
26
−
2
View file @
96e37458
...
@@ -13,6 +13,28 @@ function listEvals(evalString) {
...
@@ -13,6 +13,28 @@ function listEvals(evalString) {
return
result
;
return
result
;
}
}
function
formatTemplateConfig
(
script_parameters
):
ReactElement
{
// const c = JSON.parse(script_parameters);
// Remove the author/full path from the model name for cleanliness
// const short_model_name = c.model_name.split('/').pop();
// Set main_task as either or the metric name from the script parameters
const
main_task
=
script_parameters
.
metrics
?
script_parameters
.
metrics
:
script_parameters
.
task
;
const
dataset_name
=
script_parameters
.
dataset_name
?
script_parameters
.
dataset_name
:
'
N/A
'
;
const
r
=
(
<>
<
b
>
Metric/Task:
</
b
>
{
main_task
}
<
br
/>
<
b
>
Dataset:
</
b
>
{
dataset_name
}
<
FileTextIcon
size
=
{
14
}
/>
<
br
/>
{
/* <b>Adaptor:</b> {c.adaptor_name} <br /> */
}
{
/* {JSON.stringify(c)} */
}
</>
);
return
r
;
}
async
function
evaluationRun
(
async
function
evaluationRun
(
experimentId
:
string
,
experimentId
:
string
,
plugin
:
string
,
plugin
:
string
,
...
@@ -43,6 +65,7 @@ export default function EvalTasksTable({
...
@@ -43,6 +65,7 @@ export default function EvalTasksTable({
const
[
currentPlugin
,
setCurrentPlugin
]
=
useState
(
''
);
const
[
currentPlugin
,
setCurrentPlugin
]
=
useState
(
''
);
const
[
currentEvalName
,
setCurrentEvalName
]
=
useState
(
''
);
const
[
currentEvalName
,
setCurrentEvalName
]
=
useState
(
''
);
return
(
return
(
<>
<>
<
EditEvalModal
<
EditEvalModal
...
@@ -70,8 +93,9 @@ export default function EvalTasksTable({
...
@@ -70,8 +93,9 @@ export default function EvalTasksTable({
<
tr
key
=
{
evaluations
.
name
}
>
<
tr
key
=
{
evaluations
.
name
}
>
<
td
style
=
{
{
overflow
:
'
hidden
'
}
}
>
{
evaluations
.
name
}
</
td
>
<
td
style
=
{
{
overflow
:
'
hidden
'
}
}
>
{
evaluations
.
name
}
</
td
>
<
td
style
=
{
{
overflow
:
'
hidden
'
}
}
>
<
td
style
=
{
{
overflow
:
'
hidden
'
}
}
>
{
evaluations
?.
script_parameters
?.
task
}
{
formatTemplateConfig
(
evaluations
.
script_parameters
)
}
<
FileTextIcon
size
=
{
14
}
/>
{
/* {evaluations?.script_parameters?.task} */
}
{
/* <FileTextIcon size={14} /> */
}
</
td
>
</
td
>
<
td
>
{
evaluations
.
plugin
}
</
td
>
<
td
>
{
evaluations
.
plugin
}
</
td
>
<
td
style
=
{
{
textAlign
:
'
right
'
}
}
>
<
td
style
=
{
{
textAlign
:
'
right
'
}
}
>
...
...
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