- Add
tensorboard.pyto your project.- Add the file to your project and import it.
- Or, if using Jupyter Notebook, paste it into a code cell.
- Initialize the class as follows:
# Clear any logs from previous runs
!rm -rf ./logs/| /// Library A | |
| class Animal { | |
| final String name; | |
| const Animal({ required this.name }); | |
| } | |
| class Dog extends Animal { | |
| final String breed; |
| # ... | |
| # Ensure yarn is not run in an npm directory. | |
| yarn() { | |
| if [ -f "./package-lock.json" ]; then | |
| echo "no... this is an npm directory" | |
| else | |
| command yarn $@ | |
| fi | |
| } |
title: Test Protocol abbrev: TP docname: draft-test-00 date: 2022-03-29 category: std submissionType: IETF
ipr: trust200902 area: Applications
| from tensorflow.keras import backend as K | |
| @tensorflow.function | |
| def angeleaky_elu(x, alpha=1.0): | |
| """ | |
| Custom activation function that introduces a bias between 0 < x < 0.5 to | |
| 'throttle' the positive values that the network is not confident in. | |
| """ | |
| return K.switch( |
| # This might not be super useful for most cases because you could just install a screenshot tool | |
| # designed for KDE and you likely wouldn't have gnome installed - but it was useful for a specific | |
| # lab environment. | |
| gnome-screenshot -a -f /tmp/screenshot.png; xclip -selection clipboard -i /tmp/screenshot.png -t image/png; rm /tmp/screenshot.png |
| /// Converts an upper camel case string to lower snake case. | |
| String toLowerSnake(String value) { | |
| return value.replaceAllMapped(RegExp(r"([A-Z])"), (match) => "_${match.group(1)!.toLowerCase()}"); | |
| } | |
| /// Converts a lower snake case string to upper camel case. | |
| String toUpperCamel(String value) { | |
| return value.replaceAllMapped(RegExp(r"_([a-z])"), (match) => match.group(1)!.toUpperCase()); | |
| } |
| // Original source: https://tartarus.org/martin/PorterStemmer/js.txt | |
| // This algorithm/implementation is public domain, free for any purpose. If in doubt, please | |
| // ...refer to FAQ#1 ("What is the licensing arrangement for this software?") at: | |
| // ... https://tartarus.org/martin/PorterStemmer/ | |
| // (Reproduced here for convenience). | |
| // Porter stemmer in Javascript. Few comments, but it's easy to follow against the rules in the original | |
| // paper, in | |
| // |
| # This should be added to package.json as a 'postinstall' script. | |
| curl https://gist.githubusercontent.com/SamJakob/6fd2f06cc38242557e5d2d50fbe7a157/raw/62bae510910db76c9ef503b92288b429c62a4206/typedoc_package.json > ./node_modules/typedoc/package.json |
| <%@ language=JScript %> | |
| <% | |
| var SPDBInterface = { | |
| read: function(file){ | |
| return new SPDB(file); | |
| }, | |
| write: function(spdb, file){ | |
| FileSystem.writeFile(file, spdb.toXML()); |