-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e04b9d1
commit 94d90b3
Showing
2 changed files
with
31 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
# Main file | ||
|
||
import torch | ||
import itertools | ||
|
||
import numpy as np | ||
|
||
from src.lop import lop | ||
from src.nn_rank import NNRank | ||
|
||
# lop('RandB/N-p40-01').solve_instance() | ||
|
||
model = NNRank(100, 5, 1) | ||
|
||
inputs = torch.randn(10000).reshape(100, 100) | ||
targets = torch.cat((torch.zeros(50), torch.ones(50)), dim=0) | ||
|
||
lop('RandB/N-p40-01').solve_instance() | ||
model.train(inputs, targets, 100) |
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