Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arc
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
Buckworth, Titus Frederick Christian C
arc
Commits
329e70d2
Commit
329e70d2
authored
3 months ago
by
tbuckworth
Browse files
Options
Downloads
Patches
Plain Diff
created solution_test.py
parent
023eff7d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
solution_tests.py
+1
-12
1 addition, 12 deletions
solution_tests.py
with
1 addition
and
12 deletions
solution_tests.py
+
1
−
12
View file @
329e70d2
import
copy
import
unittest
import
unittest
import
numpy
as
np
from
main
import
load_task
,
tasks
from
main
import
load_task
,
FOL2grid
,
FOL2prolog
,
prolog2FOL_array
,
tasks
from
task
import
Task
from
task
import
Task
class
TaskTester
(
unittest
.
TestCase
):
class
TaskTester
(
unittest
.
TestCase
):
# @classmethod
# def setUpClass(cls):
# cls.task_dict = load_task("data/training/d4f3cd78.json")
# cls.task = Task(cls.task_dict)
# # Example of accessing input/output grids for the first example
# cls.output_grid = cls.task.train_examples[0].output_grid.grid
# cls.out_preds = cls.task.train_examples[0].output_grid.preds
def
try_solution
(
self
,
task_file
,
solution
):
def
try_solution
(
self
,
task_file
,
solution
):
task_dict
=
load_task
(
f
"
data/training/
{
task_file
}
"
)
task_dict
=
load_task
(
f
"
data/training/
{
task_file
}
"
)
...
...
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