Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions chemicalx/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from class_resolver import Resolver # noqa:F401,F403

from .audnnsynergy import * # noqa:F401,F403
from .base import Model # noqa:F401,F403
from .caster import * # noqa:F401,F403
from .deepcci import * # noqa:F401,F403
from .deepddi import * # noqa:F401,F403
Expand All @@ -12,3 +15,5 @@
from .mhcaddi import * # noqa:F401,F403
from .mrgnn import * # noqa:F401,F403
from .ssiddi import * # noqa:F401,F403

model_resolver = Resolver.from_subclasses(base=Model)
12 changes: 9 additions & 3 deletions chemicalx/models/audnnsynergy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
class AUDNNSynergy:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"AUDNNSynergy",
]


class AUDNNSynergy(Model):
pass
12 changes: 12 additions & 0 deletions chemicalx/models/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Base classes for models and utilities."""

__all__ = [
"Model",
]


class Model:
"""The base class for ChemicalX models."""

def __init__(self, x: int):
self.x = x
15 changes: 12 additions & 3 deletions chemicalx/models/caster.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class CASTER:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"CASTER",
]


class CASTER(Model):
"""An implementation of the CASTER model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/15
"""
15 changes: 12 additions & 3 deletions chemicalx/models/deepcci.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class DeepCCI:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"DeepCCI",
]


class DeepCCI(Model):
"""An implementation of the DeepCCI model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/1
"""
15 changes: 12 additions & 3 deletions chemicalx/models/deepddi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class DeepDDI:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"DeepDDI",
]


class DeepDDI(Model):
"""An implementation of the DeepDDI model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/2
"""
15 changes: 12 additions & 3 deletions chemicalx/models/deepdds.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class DeepDDS:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"DeepDDS",
]


class DeepDDS(Model):
"""An implementation of the DeepDDS model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/19
"""
15 changes: 12 additions & 3 deletions chemicalx/models/deepdrug.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class DeepDrug:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"DeepDrug",
]


class DeepDrug(Model):
"""An implementation of the DeepDrug model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/14
"""
15 changes: 12 additions & 3 deletions chemicalx/models/deepsynergy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class DeepSynergy:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"DeepSynergy",
]


class DeepSynergy(Model):
"""An implementation of the DeepSynergy model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/16
"""
15 changes: 12 additions & 3 deletions chemicalx/models/dpddi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class DPDDI:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"DPDDI",
]


class DPDDI(Model):
"""An implementation of the DPDDI model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/20
"""
15 changes: 12 additions & 3 deletions chemicalx/models/epgcnds.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class EPGCNDS:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"EPGCNDS",
]


class EPGCNDS(Model):
"""An implementation of the EPGCNDS model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/22
"""
15 changes: 12 additions & 3 deletions chemicalx/models/gcnbmp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class GCNBMP:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"GCNBMP",
]


class GCNBMP(Model):
"""An implementation of the GCNBMP model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/21
"""
15 changes: 12 additions & 3 deletions chemicalx/models/matchmaker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class MatchMaker:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"MatchMaker",
]


class MatchMaker(Model):
"""An implementation of the MatchMaker model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/23
"""
15 changes: 12 additions & 3 deletions chemicalx/models/mhcaddi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class MHCADDI:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"MHCADDI",
]


class MHCADDI(Model):
"""An implementation of the MHCADDI model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/13
"""
15 changes: 12 additions & 3 deletions chemicalx/models/mrgnn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class MRGNN:
def __init__(self, x: int):
self.x = 2
from .base import Model

__all__ = [
"MRGNN",
]


class MRGNN(Model):
"""An implementation of the MR-GNN model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/12
"""
15 changes: 12 additions & 3 deletions chemicalx/models/ssiddi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class SSIDDI:
def __init__(self, x: int):
self.x = x
from .base import Model

__all__ = [
"SSIDDI",
]


class SSIDDI(Model):
"""An implementation of the SSI-DDI model.

.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/11
"""
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"tqdm",
"six",
"scikit-learn",
"class-resolver",
]


Expand Down