Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug concepts not updating in ConceptGraph. Add sample program test …
…case.WIP.
- Loading branch information
Showing
7 changed files
with
142 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
normal_residuals(X0, X1, Y) :- variable(X0), variable(X1), variable(Y). | ||
%, numeric_or_categorical(X), numeric_or_categorical(Y). | ||
numeric(V) :- variable(V), not categorical(V). | ||
two_categories(V) :- variable(V), categorical(V). | ||
transformed(V) :- variable(V). | ||
multicollinear(X0, X1, Y) :- variable(X0), variable(X1), variable(Y), not tolerate_correlation(X0, X1). | ||
|
||
linear_regression(X0, X1, Y) :- variable(X0), variable(X1), variable(Y), normal_residuals(X0, X1, Y), homoscedastic_residuals(X0, X1, Y), not multicollinear(X0, X1, Y), numeric(Y), %numeric_or_categorical(X), | ||
transformed(X0), transformed(X1), transformed(Y). | ||
|
||
|
||
logistic_regression(X0, X1, Y) :- variable(X0), variable(X1), variable(Y), normal_residuals(X0, X1, Y), homoscedastic_residuals(X0, X1, Y), not multicollinear(X0, X1, Y), two_categories(Y), %numeric_or_categorical(X), | ||
transformed(X0), transformed(X1), transformed(Y). | ||
|
||
%%%%%% CONTROL OUTPUT %%%%%% | ||
#show 0. | ||
|
||
#show linear_regression/3. | ||
#show logistic_regression/3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.