This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "collaborative" : false, | |
| "description" : "Your daily update of the most played tracks right now.", | |
| "external_urls" : { | |
| "spotify" : "http://open.spotify.com/user/spotifycharts/playlist/37i9dQZEVXbMDoHDwVN2tF" | |
| }, | |
| "followers" : { | |
| "href" : null, | |
| "total" : 10837848 | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data":[ | |
| { | |
| "image":"assets/img/0.jpg", | |
| "track": "Rockstar", | |
| "artist": "Post Malone & 21 Savage", | |
| "num_listeners": 50000 | |
| }, | |
| { | |
| "image":"assets/img/1.jpg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| function titleModified(titleEl) { | |
| alert("Title modifed"); | |
| alert(titleEl.text) | |
| } | |
| var titleEl = document.getElementsByTagName("title")[0]; | |
| var docEl = document.documentElement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def save_file(filepath): | |
| f = h5py.File(filepath, 'w') | |
| f.attrs['nb_documents'] = len(self.layers) | |
| for k, l in enumerate(self.layers): | |
| g = f.create_group('doc_{}'.format(k)) | |
| weights = l.get_weights() | |
| g.attrs['nb_params'] = len(weights) | |
| for n, param in enumerate(weights): | |
| param_name = 'param_{}'.format(n) | |
| param_dset = g.create_dataset(param_name, param.shape, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Cell 1: | |
| import sys.process._ | |
| import org.json4s.jackson.JsonMethods._ | |
| import org.json4s.native.Serialization._ | |
| import org.json4s.{DefaultFormats, _} | |
| import org.joda.time.format.DateTimeFormat | |
| import org.joda.time.DateTime | |
| val jobQuery = "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "courseId":10, | |
| "endpoints": { | |
| "succes": "some endpoint", | |
| "failure": "some other endpoint" | |
| }, | |
| "settings":{ | |
| "diverse":true, | |
| "iterations": 50, | |
| // if global weights are provided we discard the local ones |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "courseId":10, | |
| "settings":{ | |
| "diverse":true | |
| }, | |
| "students":[ | |
| { | |
| "id":1, | |
| "name":"Bram", | |
| "mandatory": true, |