Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
InteGraal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Boreal
InteGraal
Commits
e64534db
Commit
e64534db
authored
5 days ago
by
CHAROENSIT Akira
Browse files
Options
Downloads
Patches
Plain Diff
(build pass)
parent
51afd0ee
No related branches found
No related tags found
1 merge request
!68
Resolve "add explanation module"
Pipeline
#1144365
failed
5 days ago
Stage: build
Stage: publish
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integraal/integraal-explanation/src/main/java/fr/boreal/explanation/tracker_gri/explainers/AbstractStaticGRIBasedExplainer_TrackerGRI.java
+17
-0
17 additions, 0 deletions
...xplainers/AbstractStaticGRIBasedExplainer_TrackerGRI.java
with
17 additions
and
0 deletions
integraal/integraal-explanation/src/main/java/fr/boreal/explanation/tracker_gri/explainers/AbstractStaticGRIBasedExplainer_TrackerGRI.java
+
17
−
0
View file @
e64534db
...
...
@@ -46,6 +46,22 @@ public abstract class AbstractStaticGRIBasedExplainer_TrackerGRI<ExplanationType
*/
GRIRuleTransformer
ruleTransformer
=
GRIRuleTransformer
.
instance
();
Predicate
<
Atom
>
belongsToInitialFactbase
;
/**
* Sets the initial KB and compute the GRI
*
* @param inputKB the current kb
*/
public
AbstractStaticGRIBasedExplainer_TrackerGRI
(
KnowledgeBase
inputKB
)
{
this
.
inputKB
=
inputKB
;
this
.
intialAtoms
=
new
HashSet
<
Atom
>();
inputKB
.
getFactBase
().
getAtoms
().
forEach
(
intialAtoms:
:
add
);
var
trackedChase
=
DefaultChaseForExplanations
.
chaseForTracker
(
this
.
inputKB
);
this
.
griKBChase
=
trackedChase
.
chase
();
this
.
griTracker
=
trackedChase
.
tracker
();
}
/**
* Sets the initial KB and compute the GRI
*
...
...
@@ -60,6 +76,7 @@ public abstract class AbstractStaticGRIBasedExplainer_TrackerGRI<ExplanationType
var
trackedChase
=
DefaultChaseForExplanations
.
chaseForTracker
(
this
.
inputKB
);
this
.
griKBChase
=
trackedChase
.
chase
();
this
.
griTracker
=
trackedChase
.
tracker
();
this
.
solver
=
solver
;
}
public
void
pipeline
()
{
...
...
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