-
YAML Tutorial Quick StartData 2021. 8. 4. 10:18
https://www.cloudbees.com/blog/yaml-tutorial-everything-you-need-get-started YAML Tutorial: Everything You Need to Get Started in Minutes YAML Ain't Markup Language (YAML) has a risen in popularity over the past few years. Here's a YAML tutorial to get you started quickly. www.cloudbees.com
-
-
-
Decompress tar filesMiscellaneous 2021. 6. 22. 15:03
tar files: It is a compressed file often used in Linux (similar to zip files in Windows) tar -xvf compressed_file.tar tar -xvf compressed_file.tar --directory /path/to/directory [1] StackExchange, "Are there other options to unzip a file in Ubuntu besides “unzip”? [closed]" (link) [2] Some blog posting, "tar command in Linux with examples" (link)
-
Run Python using a Shell ScriptPython 2021. 5. 17. 06:08
Let's say we have the following three files: config.py, main.py and experiments/test.sh. config.py is in charge of (hyper-)parameters in main.py and we'd like to run main.py using test.sh. # config.py import argparse def load_args(): parser = argparse.ArgumentParser() parser.add_argument('--lr', default=1e-3, type=float) parser.add_argument('--h_layers', default=[2, 2, 2], type=lambda s: [int(it..
-
Loss function for multi-label classificationData/Machine learning 2021. 5. 3. 20:01
Binary Cross Entropy is used for multi-label classification, and it's involved with a sigmoid function. (Note that cross-entropy is used for multi-class classification that's involved with a softmax function) (reference) Example of a simple neural network model for multi-label classification in Keras (link) - Size of an output layer must be a number of labels. [PyTorch web] BCEWithLogitLoss (link)