-
Notifications
You must be signed in to change notification settings - Fork 7
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 #70 from artefactory/feat/nested
ADD: Nested Logit Model ADD: Nested Logit Example Notebook ADD: Biogeme Nested pre-processing of SwissMetro Data ADD: HC dataset
- Loading branch information
Showing
20 changed files
with
2,890 additions
and
165 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
Binary file not shown.
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,16 +1,19 @@ | ||
"""Models classes and functions.""" | ||
import logging | ||
|
||
import tensorflow as tf | ||
|
||
from .conditional_logit import ConditionalLogit | ||
from .nested_logit import NestedLogit | ||
from .simple_mnl import SimpleMNL | ||
from .tastenet import TasteNet | ||
|
||
if len(tf.config.list_physical_devices("GPU")) > 0: | ||
print("GPU detected, importing GPU version of RUMnet.") | ||
logging.info("GPU detected, importing GPU version of RUMnet.") | ||
from .rumnet import GPURUMnet as RUMnet | ||
else: | ||
from .rumnet import CPURUMnet as RUMnet | ||
|
||
print("No GPU detected, importing CPU version of RUMnet.") | ||
logging.info("No GPU detected, importing CPU version of RUMnet.") | ||
|
||
__all__ = ["ConditionalLogit", "RUMnet", "SimpleMNL", "TasteNet"] | ||
__all__ = ["ConditionalLogit", "RUMnet", "SimpleMNL", "TasteNet", "NestedLogit"] |
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.