Election Imports#

import_approval_election(experiment_id: str | None = None, election_id: str | None = None, is_shifted: bool = False, file_ending=4)[source]#

Import real approval election form .app file

import_coordinates(experiment_id: str, election_id: str, object_type: str = 'vote') ndarray[source]#

Imports coordinates from a csv file.

Parameters:
  • experiment_id (str) – Name of the experiment.

  • election_id (str) – Name of the election.

  • object_type (str) – Object type.

Returns:

Distances.

Return type:

np.ndarray

import_distances(experiment_id: str, election_id: str, object_type: str = 'vote') ndarray[source]#

Imports distances from a csv file.

Parameters:
  • experiment_id (str) – Name of the experiment.

  • election_id (str) – Name of the election.

  • object_type (str) – Object type.

Returns:

Distances.

Return type:

np.ndarray

import_ordinal_election(experiment_id: str | None = None, election_id: str | None = None, is_shifted=False, file_ending=4)[source]#

Import real ordinal election form .soc file