Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 26, 2021 08:36
Show Gist options
  • Save amankharwal/c565dc97bd140c04dfa7e1e73a5bd659 to your computer and use it in GitHub Desktop.
Save amankharwal/c565dc97bd140c04dfa7e1e73a5bd659 to your computer and use it in GitHub Desktop.
import numpy as np
features = np.array(data[['Followers', 'Time since posted']], dtype = 'float32')
targets = np.array(data['Likes'], dtype = 'float32')
maxValLikes = max(targets)
print('Max value of target is {}'.format(maxValLikes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment