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
a15df2f5
Unverified
Commit
a15df2f5
authored
2 months ago
by
Deep Gandhi
Committed by
GitHub
2 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #287 from transformerlab/fix/basic-evals
Show which return types require Regex in basic evals and...
parents
ee5232ae
e9e86155
Branches
Branches containing commit
Tags
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/EvalTasksTable.tsx
+5
-3
5 additions, 3 deletions
src/renderer/components/Experiment/Eval/EvalTasksTable.tsx
src/renderer/components/Experiment/Widgets/CustomEvaluationWidget.tsx
+2
-2
2 additions, 2 deletions
.../components/Experiment/Widgets/CustomEvaluationWidget.tsx
with
7 additions
and
5 deletions
src/renderer/components/Experiment/Eval/EvalTasksTable.tsx
+
5
−
3
View file @
a15df2f5
...
@@ -21,18 +21,20 @@ function formatTemplateConfig(script_parameters): ReactElement {
...
@@ -21,18 +21,20 @@ function formatTemplateConfig(script_parameters): ReactElement {
// const short_model_name = c.model_name.split('/').pop();
// const short_model_name = c.model_name.split('/').pop();
// Set main_task as either or the metric name from the script parameters
// Set main_task as either or the metric name from the script parameters
const
main_task
=
(()
=>
{
const
main_task
=
(()
=>
{
let
predefined_tasks
=
script_parameters
.
predefined_tasks
?
script_parameters
.
predefined_tasks
:
''
;
if
(
script_parameters
.
tasks
)
{
if
(
script_parameters
.
tasks
)
{
try
{
try
{
const
tasksArray
=
JSON
.
parse
(
script_parameters
.
tasks
);
const
tasksArray
=
JSON
.
parse
(
script_parameters
.
tasks
);
if
(
Array
.
isArray
(
tasksArray
))
{
if
(
Array
.
isArray
(
tasksArray
))
{
return
tasksArray
.
map
((
task
)
=>
task
.
name
).
join
(
'
,
'
);
return
tasksArray
.
map
((
task
)
=>
task
.
name
).
join
(
'
,
'
)
+
predefined_tasks
;
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
// Invalid JSON; fall back to the original value
// Invalid JSON; fall back to the original value
}
}
return
script_parameters
.
tasks
;
return
script_parameters
.
tasks
+
predefined_tasks
;
}
}
return
script_parameters
.
tasks
;
return
script_parameters
.
tasks
+
predefined_tasks
;
})();
})();
const
dataset_name
=
script_parameters
.
dataset_name
const
dataset_name
=
script_parameters
.
dataset_name
?
script_parameters
.
dataset_name
?
script_parameters
.
dataset_name
...
...
This diff is collapsed.
Click to expand it.
src/renderer/components/Experiment/Widgets/CustomEvaluationWidget.tsx
+
2
−
2
View file @
a15df2f5
...
@@ -103,8 +103,8 @@ const CustomEvaluationWidget = (props: WidgetProps<any>) => {
...
@@ -103,8 +103,8 @@ const CustomEvaluationWidget = (props: WidgetProps<any>) => {
disabled
=
{
disabled
||
readonly
}
disabled
=
{
disabled
||
readonly
}
style
=
{
{
marginBottom
:
'
0.5rem
'
}
}
style
=
{
{
marginBottom
:
'
0.5rem
'
}
}
>
>
<
Option
value
=
"boolean"
>
Boolean
</
Option
>
<
Option
value
=
"boolean"
>
Boolean
(Regex)
</
Option
>
<
Option
value
=
"number"
>
Number
</
Option
>
<
Option
value
=
"number"
>
Number
(Regex)
</
Option
>
<
Option
value
=
"contains"
>
Contains
</
Option
>
<
Option
value
=
"contains"
>
Contains
</
Option
>
<
Option
value
=
"isequal"
>
IsEqual
</
Option
>
<
Option
value
=
"isequal"
>
IsEqual
</
Option
>
</
Select
>
</
Select
>
...
...
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