Skip to content
Open
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
6 changes: 5 additions & 1 deletion preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ def value_range(data):
range : number
The distance between the lowest and the highest value of ``data``.
"""
return 0.0
def value_range(data):
data_min=data.min()
data_max=data.max()
print("the lowest value is", data_min, "and the highest value is", data_max)



def rescale(data, lower=0.0, upper=1.0):
Expand Down
1 change: 1 addition & 0 deletions test_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import preprocess

#blablla kecy kecy

def test_center():
# After centering, mean should be the desired mean and the
Expand Down