Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs598mp-fall2021-proj
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
chsieh16
cs598mp-fall2021-proj
Commits
401e0eb3
Commit
401e0eb3
authored
3 years ago
by
aastorg2
Browse files
Options
Downloads
Patches
Plain Diff
multiply variable by itself instead of using power function
parent
a13554a9
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
firstpass_learner.py
+2
-2
2 additions, 2 deletions
firstpass_learner.py
with
2 additions
and
2 deletions
firstpass_learner.py
+
2
−
2
View file @
401e0eb3
...
...
@@ -22,7 +22,7 @@ def l1_norm(*exprs) -> z3.ExprRef:
return
z3
.
Sum
(
*
(
abs_expr
(
expr
)
for
expr
in
exprs
))
def
l2_norm
(
*
exprs
)
->
z3
.
ExprRef
:
return
z3
.
Sum
(
*
(
expr
*
*
2
for
expr
in
exprs
))
return
z3
.
Sum
(
*
(
expr
*
expr
for
expr
in
exprs
))
def
max_expr
(
*
exprs
)
->
z3
.
ExprRef
:
m
=
exprs
[
0
]
...
...
@@ -99,7 +99,7 @@ class FirstpassLearner(Z3LearnerBase):
print
(
"
(unsat)
"
)
return
None
else
:
print
(
"
(unknown)
"
)
print
(
"
(unknown)
or timeout!
"
)
return
None
...
...
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