Skip to content

Commit

Permalink
Indicator renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed May 29, 2018
1 parent d8f763c commit 9d9fa7d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ __pycache__/
*.py[cod]
*$py.class

.DS_Store

.idea/

# C extensions
Expand Down
2 changes: 1 addition & 1 deletion pymoo/configuration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pymoo.rand.impl.my_random_generator import MyRandomGenerator


class Configuration:
EPS = 1e-30
rand = MyRandomGenerator()

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import numpy as np
from pymoo.model.performance import Performance
from pymoo.model.indicator import Indicator


def hypervolume(F):
pass

class Hypervolume(Performance):
class Hypervolume(Indicator):
def __init__(self, reference_point):
Performance.__init__(self)
Indicator.__init__(self)
self.reference_point = reference_point

def _calc(self, F):
Expand Down
6 changes: 3 additions & 3 deletions pymoo/indicator/igd.py → pymoo/indicators/igd.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import numpy as np
from scipy.spatial.distance import cdist

from pymoo.model.performance import Performance
from pymoo.model.indicator import Indicator


class IGD(Performance):
class IGD(Indicator):
def __init__(self, true_front):
Performance.__init__(self)
Indicator.__init__(self)
self.true_front = true_front

def _calc(self, F):
Expand Down
2 changes: 1 addition & 1 deletion pymoo/model/performance.py → pymoo/model/indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np


class Performance:
class Indicator:

def __init__(self):
self.default_if_empty = 0.0
Expand Down

0 comments on commit 9d9fa7d

Please sign in to comment.