Skip to content

Instantly share code, notes, and snippets.

@danlurie
Last active December 13, 2019 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danlurie/691d0cea1b2c74b227e11d32147e9823 to your computer and use it in GitHub Desktop.
Save danlurie/691d0cea1b2c74b227e11d32147e9823 to your computer and use it in GitHub Desktop.
Python Surface Plotting
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BraINstinct0
Copy link

BraINstinct0 commented Dec 13, 2019

Didn't expect feedback to happen this quick!
For replication I (first flipped the sign of ed then) applied the scaler.

ed = -np.loadtxt('./ _insert_appropriate_location_ /LG400_Med.txt')
scaler = preprocessing.MinMaxScaler(feature_range=(0.00001, 1))
ed_scaled = scaler.fit_transform(ed.reshape(-1, 1))[:, 0]

Now, the result shows as below:
image image

I think it is (sort of) finally replicated well! (Used data from LG400_Med.txt on your gist)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment