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 UIKit | |
var simpleClosure = { | |
print("Hello from a closure!") | |
} | |
simpleClosure() | |
var wrapperColosure = { | |
let outerVariable = "Jon" |
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
(...) | |
******** iteration: 9627 | |
b 40.5477332957581 | |
db -0.1498389928015449 | |
step_size_b -0.0001498886519173439 | |
m 2.5101777752144017 | |
dm 0.009998099352959144 | |
step_size_m 1.0001412888360762e-05 | |
******** iteration: 9628 | |
b 40.547883134750904 |
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
# initial values | |
b = 30 | |
m = 3 | |
db = 1 | |
dm = 1 | |
limit = 0.00001 | |
learning_rate = 0.001 | |
step_size_b = -3 |
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
# initial values | |
b = 30 | |
m = 3 | |
db = 1 | |
dm = 1 | |
limit = 0.00001 | |
learning_rate = 0.001 | |
step_size_b = -3 |
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
******** iteration: 5 | |
b 30.592 | |
db -7.8160000000000025 | |
step_size -0.592 | |
******** iteration: 6 | |
b 30.7104 | |
db -7.579200000000007 | |
step_size -0.1184 |
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
0xc0c3267395c150ed36287c2009119c13c969ae8f |
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
version: '2' | |
services: | |
database: | |
image: postgres | |
volumes: | |
- ./data/pgdata:/pgdata | |
env_file: | |
- '.env' | |
web: | |
links: |
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
POSTGRES_USER=postgres | |
POSTGRES_PASSWORD=password4postgres | |
REDIS_URL=redis://foo.redis.server:6379 |
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
version: '2' | |
services: | |
database: | |
image: postgres | |
volumes: | |
- ./data/pgdata:/pgdata | |
env_file: | |
- '.env' | |
web: | |
links: |
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
version: '2' | |
services: | |
database: | |
image: postgres | |
volumes: | |
- ./data/pgdata:/pgdata | |
env_file: | |
- '.env' | |
web: | |
links: |
NewerOlder