# Python 3
import operator
from collections import Counter
class NaiveBayes:
def _tokenize(self, text):
return text.split(" ")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Schema stockPrice = SchemaBuilder.struct() | |
.name("com.thirdparty.StockPrice").version(2).doc("Stock price update") | |
.field("market", Schema.STRING_SCHEMA) | |
.field("stock", Schema.STRING_SCHEMA) | |
.field("price", Decimal.builder(127).build()) | |
.build(); | |
Struct update = new Struct(stockPrice) | |
.put("market", "PSN") |
I hereby claim:
- I am pegerto on github.
- I am pegerto (https://keybase.io/pegerto) on keybase.
- I have a public key whose fingerprint is E621 B8C0 4CF6 1F69 D387 613B 8F78 CF49 8555 957D
To claim this, I am signing this object:
This file contains 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
/** | |
* Created by pegerto on 16/05/2016. | |
*/ | |
class TestSimulations extends Simulation{ | |
/** | |
* get a coma separated string http://pastebin.com/raw/WDensHUa | |
* then | |
* - covert to json | |
* - post json body: ( nc -l 8080 to see the output) |