Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bewerter Struktureller Induktion
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Edward Sabinus
Bewerter Struktureller Induktion
Commits
ff8c8a53
Commit
ff8c8a53
authored
1 year ago
by
Edward Sabinus
Browse files
Options
Downloads
Patches
Plain Diff
replaced maxpt with confpt in assessment formula to not punish twice for not enough steps
parent
a1beb174
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BewerterStrukturellerInduktion/Bewertung/Bewerter.cs
+2
-2
2 additions, 2 deletions
BewerterStrukturellerInduktion/Bewertung/Bewerter.cs
with
2 additions
and
2 deletions
BewerterStrukturellerInduktion/Bewertung/Bewerter.cs
+
2
−
2
View file @
ff8c8a53
...
@@ -62,7 +62,7 @@ namespace Bewertung {
...
@@ -62,7 +62,7 @@ namespace Bewertung {
InductionCaseConfig
icConfig
=
indConf
.
GetIndCaseConfig
(
ic
.
Constructor
);
InductionCaseConfig
icConfig
=
indConf
.
GetIndCaseConfig
(
ic
.
Constructor
);
if
(
icConfig
==
null
)
throw
new
Exception
(
"Cannot find config for induction case "
+
ic
.
Constructor
.
name
+
"."
);
if
(
icConfig
==
null
)
throw
new
Exception
(
"Cannot find config for induction case "
+
ic
.
Constructor
.
name
+
"."
);
double
confPt
=
base
.
confPt
(
icConfig
.
config
.
maxPt
,
abstrMaxPt
,
icConfig
.
config
.
minSteps
);
double
confPt
=
base
.
confPt
(
icConfig
.
config
.
maxPt
,
abstrMaxPt
,
icConfig
.
config
.
minSteps
);
aO
.
findIPA
(
"Fall "
+
ic
.
Constructor
.
name
).
Assessment
=
Math
.
Max
(
0.0
,
confPt
-
icConfig
.
config
.
max
Pt
*
errorPoints
/
Math
.
Max
(
1.0
,
Math
.
Min
(
icConfig
.
config
.
maxSteps
,
abstrMaxPt
)));
aO
.
findIPA
(
"Fall "
+
ic
.
Constructor
.
name
).
Assessment
=
Math
.
Max
(
0.0
,
confPt
-
conf
Pt
*
errorPoints
/
Math
.
Max
(
1.0
,
Math
.
Min
(
icConfig
.
config
.
maxSteps
,
abstrMaxPt
)));
}
}
foreach
(
InductionPartAssessment
ipa
in
aO
.
confIndAssessment
)
foreach
(
InductionPartAssessment
ipa
in
aO
.
confIndAssessment
)
aO
.
assessment
+=
ipa
.
Assessment
;
aO
.
assessment
+=
ipa
.
Assessment
;
...
@@ -76,7 +76,7 @@ namespace Bewertung {
...
@@ -76,7 +76,7 @@ namespace Bewertung {
errorPoints
=
errorPoints
/
Math
.
Max
(
1.0
,
Math
.
Min
(
sConf
.
maxSteps
,
aO
.
AbstractMaxTaskPoints
()));
errorPoints
=
errorPoints
/
Math
.
Max
(
1.0
,
Math
.
Min
(
sConf
.
maxSteps
,
aO
.
AbstractMaxTaskPoints
()));
if
(
containsError23
(
mainLemma
))
errorPoints
+=
weights
[
5
];
if
(
containsError23
(
mainLemma
))
errorPoints
+=
weights
[
5
];
double
confPt
=
base
.
confPt
(
aO
.
task
.
config
.
MaxPt
(),
aO
.
AbstractMaxTaskPoints
(),
sConf
.
minSteps
);
double
confPt
=
base
.
confPt
(
aO
.
task
.
config
.
MaxPt
(),
aO
.
AbstractMaxTaskPoints
(),
sConf
.
minSteps
);
aO
.
assessment
=
Math
.
Max
(
0.0
,
confPt
-
(
aO
.
task
.
config
.
MaxPt
()
*
errorPoints
));
aO
.
assessment
=
Math
.
Max
(
0.0
,
confPt
-
(
confPt
*
errorPoints
));
}
}
}
}
bool
containsError23
(
Lemma
lemma
)
bool
containsError23
(
Lemma
lemma
)
...
...
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