Exemplo n.º 1
0
    def get_feature_vectors(self, observations):
        model = self._model

        feature_vectors = self._feature_vector_paths
        observation_vector_dict = hybrid.utils.create_observation_data(
            observations, feature_vectors)
        observation_array = sklearn_utils.observations_to_sklearn(
            observation_vector_dict, feature_vectors)
        return observation_array
Exemplo n.º 2
0
    def get_truth_vectors(self, observations):
        model = self._model
        truth_name_list = []

        truth_vectors = self._truth_vector_paths
        truth_vector_dict = hybrid.utils.create_observation_data(
            observations, truth_vectors)
        truth_array = sklearn_utils.observations_to_sklearn(
            truth_vector_dict, truth_vectors)
        return np.ravel(truth_array)