Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed a few things around #20

Merged
merged 15 commits into from
Jun 12, 2018
1 change: 0 additions & 1 deletion jhu_primitives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .lse import LaplacianSpectralEmbedding
from .dimselect import DimensionSelection
from .gclust import GaussianClustering
from .lcc import LargestConnectedComponent
from .nonpar import NonParametricClustering
from .numclust import NumberOfClusters
from .oocase import OutOfCoreAdjacencySpectralEmbedding
Expand Down
11 changes: 5 additions & 6 deletions jhu_primitives/ase/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np
from d3m_metadata import container, hyperparams, metadata as metadata_module, params, utils
from primitive_interfaces import base
from primitive_interfaces.base import CallResult

from d3m import utils
from d3m_metadata import hyperparams, base as metadata_module, params
from d3m.primitive_interfaces import base
from d3m.primitive_interfaces.base import CallResult

Inputs = container.matrix
Outputs = container.ndarray
Expand Down
12 changes: 5 additions & 7 deletions jhu_primitives/dimselect/dimselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
import os
import rpy2.robjects.numpy2ri
rpy2.robjects.numpy2ri.activate()
from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np
from d3m_metadata import container, hyperparams, metadata as metadata_module, params, utils
from primitive_interfaces import base
from primitive_interfaces.base import CallResult


from d3m import utils
from d3m_metadata import hyperparams, base as metadata_module, params
from d3m.primitive_interfaces import base
from d3m.primitive_interfaces.base import CallResult

Inputs = container.ndarray
Outputs = container.ndarray
Expand Down
4 changes: 1 addition & 3 deletions jhu_primitives/gclust/gclust.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import os
import rpy2.robjects.numpy2ri
rpy2.robjects.numpy2ri.activate()
from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params
Expand Down
1 change: 0 additions & 1 deletion jhu_primitives/lcc/__init__.py

This file was deleted.

170 changes: 0 additions & 170 deletions jhu_primitives/lcc/lcc.py

This file was deleted.

8 changes: 2 additions & 6 deletions jhu_primitives/lse/lse.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np


from d3m import container
from d3m import utils
#from d3m.metadata import container, hyperparams, metadata as metadata_module, params, utils
from d3m.metadata import hyperparams, base as metadata_module, params

from d3m.primitive_interfaces import base
from d3m.primitive_interfaces.base import CallResult



Inputs = container.matrix
Outputs = container.ndarray

Expand Down Expand Up @@ -116,4 +112,4 @@ def produce(self, *, inputs: Inputs, timeout: float = None, iterations: int = No
vectors = container.ndarray(result[0])
eig_values = container.ndarray(result[1])

return base.CallResult([vectors, eig_values])
return base.CallResult([vectors, eig_values])
5 changes: 1 addition & 4 deletions jhu_primitives/nonpar/nonpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from typing import Sequence, TypeVar, Union, Dict
import os

from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np


Expand All @@ -18,8 +17,6 @@
from d3m.primitive_interfaces import base
from d3m.primitive_interfaces.base import CallResult



Inputs = container.ndarray
Outputs = container.ndarray

Expand Down
5 changes: 1 addition & 4 deletions jhu_primitives/numclust/numclust.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import os
import rpy2.robjects.numpy2ri
rpy2.robjects.numpy2ri.activate()
from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params
Expand All @@ -29,7 +27,6 @@ class Hyperparams(hyperparams.Hyperparams):
#hp = hyperparams.Hyperparameter[None](default = None)
hp = None


def file_path_conversion(abs_file_path, uri="file"):
local_drive, file_path = abs_file_path.split(':')[0], abs_file_path.split(':')[1]
path_sep = file_path[0]
Expand Down
4 changes: 1 addition & 3 deletions jhu_primitives/oocase/oocase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params
Expand Down
7 changes: 1 addition & 6 deletions jhu_primitives/ptr/ptr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@
from rpy2 import robjects
from typing import Sequence, TypeVar, Union, Dict
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params

from d3m.primitive_interfaces import base
from d3m.primitive_interfaces.base import CallResult

Expand Down
5 changes: 1 addition & 4 deletions jhu_primitives/sgc/sgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params
Expand Down
6 changes: 1 addition & 5 deletions jhu_primitives/sgm/sgm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@
from typing import Sequence, TypeVar, Union, Dict
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params

from d3m.primitive_interfaces import base
from d3m.primitive_interfaces.base import CallResult

Expand Down
4 changes: 1 addition & 3 deletions jhu_primitives/vnsgm/vnsgm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import os


from primitive_interfaces.transformer import TransformerPrimitiveBase
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
#from jhu_primitives.core.JHUGraph import JHUGraph
import numpy as np


from d3m import container
from d3m import utils
from d3m.metadata import hyperparams, base as metadata_module, params
Expand Down
Loading