- Ubuntu 20.04
- CUDA 10.2
- Docker Latest
Look at this existing tutorial https://lerryws.xyz/posts/PyQGIS-in-Jupyter-Notebook
Make sure time is correct if not reconfigure:
sudo dpkg-reconfigure tzdata
https://computingforgeeks.com/install-elasticsearch-on-ubuntu/
A Guide to setup and use Plantuml
- JRE: https://adoptopenjdk.net/
- GraphViz: https://graphviz.org/download/
- VSCode IDE: https://code.visualstudio.com/Download
- vs code Plugin: https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
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 rasterio | |
| # load the geotiff (a DSM in this case) and read the data - only one index in this case | |
| dsm = rasterio.open(dsm_fname) | |
| dsm_data = dsm.read()[0] | |
| # crop the data | |
| dsm_crop = dsm_data[min_y:min_y+height, min_x:min_x+width] | |
| # make a copy of the geotiff metadata |
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
| import tensorflow as tf | |
| import tensorflow.contrib as tfc | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import observations | |
| from functools import lru_cache | |
| tf.reset_default_graph() | |
| train_data, test_data = observations.cifar10('data/cifar',) |
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
| - hosts: all | |
| become: true | |
| become_method: sudo | |
| vars: | |
| daemon_json: | |
| bip: 192.168.99.1/24 | |
| default-runtime: nvidia | |
| runtimes: | |
| nvidia: | |
| path: /usr/bin/nvidia-container-runtime |
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
| """ | |
| Solving FrozenLake8x8 environment using Policy iteration. | |
| Author : Moustafa Alzantot (malzantot@ucla.edu) | |
| """ | |
| import numpy as np | |
| import gym | |
| from gym import wrappers | |
| def run_episode(env, policy, gamma = 1.0, render = False): |
NewerOlder