-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from geometric-intelligence/feat-mantra
Mantra dataset
- Loading branch information
Showing
24 changed files
with
757 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
loader: | ||
_target_: topobenchmark.data.loaders.MantraSimplicialDatasetLoader | ||
parameters: | ||
data_domain: simplicial | ||
data_type: topological | ||
data_name: MANTRA | ||
data_dir: ${paths.data_dir}/${dataset.loader.parameters.data_domain}/${dataset.loader.parameters.data_type} | ||
manifold_dim: 3 | ||
version: "v0.0.5" | ||
task_variable: "betti_numbers" # Options: ['name', 'genus', 'orientable'] To use 'torsion_coefficients', 'betti_numbers' fix multilabel multiclass issue | ||
model_domain: ${model.model_domain} | ||
|
||
# Data definition | ||
parameters: | ||
# In the case of higher-order datasets we have multiple feature dimentions | ||
num_features: [1,1,1] | ||
#num_classes: 2 # Num classes depents on the task_variable | ||
|
||
# Dataset parameters | ||
# task: classification # TODO: adapt pipeline to support multilabel classification | ||
# loss_type: cross_entropy # TODO: adapt pipeline to support multilabel classification | ||
# monitor_metric: accuracy # TODO: adapt pipeline to support multilabel classification | ||
task_level: graph | ||
data_seed: 0 | ||
|
||
#splits | ||
split_params: | ||
learning_setting: inductive | ||
data_split_dir: ${paths.data_dir}/data_splits/${dataset.loader.parameters.data_name} | ||
data_seed: 0 | ||
split_type: random #'k-fold' # either "k-fold" or "random" strategies | ||
k: 10 # for "k-fold" Cross-Validation | ||
train_prop: 0.5 # for "random" strategy splitting | ||
|
||
# Dataloader parameters | ||
dataloader_params: | ||
batch_size: 5 | ||
num_workers: 0 | ||
pin_memory: False | ||
persistent_workers: False |
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,40 @@ | ||
loader: | ||
_target_: topobenchmark.data.loaders.MantraSimplicialDatasetLoader | ||
parameters: | ||
data_domain: simplicial | ||
data_type: topological | ||
data_name: MANTRA | ||
data_dir: ${paths.data_dir}/${dataset.loader.parameters.data_domain}/${dataset.loader.parameters.data_type} | ||
manifold_dim: 2 | ||
version: "v0.0.5" | ||
task_variable: "genus" # Options: ['name', 'genus', 'orientable'] To use 'torsion_coefficients', 'betti_numbers' fix multilabel multiclass issue | ||
model_domain: ${model.model_domain} | ||
|
||
# Data definition | ||
parameters: | ||
# In the case of higher-order datasets we have multiple feature dimentions | ||
num_features: [1,1,1] | ||
num_classes: 8 # Num classes depents on the task_variable | ||
|
||
# Dataset parameters | ||
task: classification | ||
loss_type: cross_entropy | ||
monitor_metric: accuracy | ||
task_level: graph | ||
data_seed: 0 | ||
|
||
#splits | ||
split_params: | ||
learning_setting: inductive | ||
data_split_dir: ${paths.data_dir}/data_splits/${dataset.loader.parameters.data_name} | ||
data_seed: 0 | ||
split_type: random #'k-fold' # either "k-fold" or "random" strategies | ||
k: 10 # for "k-fold" Cross-Validation | ||
train_prop: 0.5 # for "random" strategy splitting | ||
|
||
# Dataloader parameters | ||
dataloader_params: | ||
batch_size: 5 | ||
num_workers: 0 | ||
pin_memory: False | ||
persistent_workers: False |
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,40 @@ | ||
loader: | ||
_target_: topobenchmark.data.loaders.MantraSimplicialDatasetLoader | ||
parameters: | ||
data_domain: simplicial | ||
data_type: topological | ||
data_name: MANTRA | ||
data_dir: ${paths.data_dir}/${dataset.loader.parameters.data_domain}/${dataset.loader.parameters.data_type} | ||
manifold_dim: 2 | ||
version: "v0.0.5" | ||
task_variable: "name" # Options: ['name', 'genus', 'orientable'] To use 'torsion_coefficients', 'betti_numbers' fix multilabel multiclass issue | ||
model_domain: ${model.model_domain} | ||
|
||
# Data definition | ||
parameters: | ||
# In the case of higher-order datasets we have multiple feature dimentions | ||
num_features: [1,1,1] | ||
num_classes: 8 # Num classes depents on the task_variable | ||
|
||
# Dataset parameters | ||
task: classification | ||
loss_type: cross_entropy | ||
monitor_metric: accuracy | ||
task_level: graph | ||
data_seed: 0 | ||
|
||
#splits | ||
split_params: | ||
learning_setting: inductive | ||
data_split_dir: ${paths.data_dir}/data_splits/${dataset.loader.parameters.data_name} | ||
data_seed: 0 | ||
split_type: random #'k-fold' # either "k-fold" or "random" strategies | ||
k: 10 # for "k-fold" Cross-Validation | ||
train_prop: 0.5 # for "random" strategy splitting | ||
|
||
# Dataloader parameters | ||
dataloader_params: | ||
batch_size: 5 | ||
num_workers: 0 | ||
pin_memory: False | ||
persistent_workers: False |
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,40 @@ | ||
loader: | ||
_target_: topobenchmark.data.loaders.MantraSimplicialDatasetLoader | ||
parameters: | ||
data_domain: simplicial | ||
data_type: topological | ||
data_name: MANTRA | ||
data_dir: ${paths.data_dir}/${dataset.loader.parameters.data_domain}/${dataset.loader.parameters.data_type} | ||
manifold_dim: 2 | ||
version: "v0.0.5" | ||
task_variable: "orientable" # Options: ['name', 'genus', 'orientable'] To use 'torsion_coefficients', 'betti_numbers' fix multilabel multiclass issue | ||
model_domain: ${model.model_domain} | ||
|
||
# Data definition | ||
parameters: | ||
# In the case of higher-order datasets we have multiple feature dimentions | ||
num_features: [1,1,1] | ||
num_classes: 2 # Num classes depents on the task_variable | ||
|
||
# Dataset parameters | ||
task: classification | ||
loss_type: cross_entropy | ||
monitor_metric: accuracy | ||
task_level: graph | ||
data_seed: 0 | ||
|
||
#splits | ||
split_params: | ||
learning_setting: inductive | ||
data_split_dir: ${paths.data_dir}/data_splits/${dataset.loader.parameters.data_name} | ||
data_seed: 0 | ||
split_type: random #'k-fold' # either "k-fold" or "random" strategies | ||
k: 10 # for "k-fold" Cross-Validation | ||
train_prop: 0.5 # for "random" strategy splitting | ||
|
||
# Dataloader parameters | ||
dataloader_params: | ||
batch_size: 5 | ||
num_workers: 0 | ||
pin_memory: False | ||
persistent_workers: False |
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,2 @@ | ||
defaults: | ||
- /transforms/liftings: null |
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,2 @@ | ||
defaults: | ||
- /transforms/liftings: null |
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,2 @@ | ||
defaults: | ||
- /transforms/liftings: null |
2 changes: 2 additions & 0 deletions
2
configs/transforms/liftings/hypergraph2simplicial_default.yaml
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,2 @@ | ||
defaults: | ||
- /transforms/liftings: null |
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,2 @@ | ||
defaults: | ||
- /transforms/liftings: null |
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.