(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
""" | |
When traing ML models on text we usually need to represent words/character in one-hot encoding. | |
This can be done in preprocessing, however it may make the dataset file bigger. Also when we'd | |
like to use an Embedding layer, it accepts the original integer indexes instead of one-hot codes. | |
Can be move the one-hot encoding from pre-preprocessing directly into the model? | |
If so we could choose from two options: use one-hot inputs or perform embedding. | |
A way how to do this was suggested in Keras issue [#3680](https://github.com/fchollet/keras/issues/3680). |
- (void) initializeTextFieldInputView { | |
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectZero]; | |
datePicker.datePickerMode = UIDatePickerModeDate; | |
datePicker.minuteInterval = 5; | |
datePicker.backgroundColor = [UIColor whiteColor]; | |
[datePicker addTarget:self action:@selector(dateUpdated:) forControlEvents:UIControlEventValueChanged]; | |
self.textField.inputView = datePicker; | |
//Add done button |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
// swap the keybindings for paste and paste_and_indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" } |
#!/usr/bin/python2 | |
# Copyright (C) 2016 Sixten Bergman | |
# License WTFPL | |
# | |
# This program is free software. It comes without any warranty, to the extent | |
# permitted by applicable law. | |
# You can redistribute it and/or modify it under the terms of the Do What The | |
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See |