Show the photos:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| license: apache-2.0 |
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
| license: gpl-3.0 | |
| border: no | |
| height: 1060 |
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
| import numpy as np | |
| from sklearn.datasets import load_iris | |
| from sklearn.tree import DecisionTreeClassifier | |
| from matplotlib import pyplot as plt | |
| # fetch data | |
| iris = load_iris() | |
| classes = {} | |
| for cls in (0,1,2): | |
| classes[cls] = np.array([v for k, v in zip(iris.target, iris.data) if k == cls]) |
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
| function play(iteration) { | |
| var ctrl = { | |
| up: function() { window.gm.inputManager.emit('move', 0); return window.gm.moved; }, | |
| right: function() { window.gm.inputManager.emit('move', 1); return window.gm.moved; }, | |
| down: function() { window.gm.inputManager.emit('move', 2); return window.gm.moved; }, | |
| left: function() { window.gm.inputManager.emit('move', 3); return window.gm.moved; } | |
| }; | |
| while(!window.gm.over && !window.gm.won) { | |
| if(!iteration(ctrl)) { |
Replace:
.@{:i}, \/\*\*\< {:n}.*$
With:
\t\2, // \1
Replace:
.@{:i}, \/\*\*\< {:d+}x{:d+}.*$
With:
\t{ \2, \3 }, // \1
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
| struct UserDerivedType : | |
| public IUserType | |
| { | |
| // ... | |
| }; | |
| void CreateCustomGraph(IProject& proj) | |
| { | |
| // create a uniform graph; no customization at this point | |
| IUserGraphNode* first_node = proj.CreateUserGraph(); |
NewerOlder



