Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MIDS-scaling-up/coursework
/ functions
Functions
28 in github.com/MIDS-scaling-up/coursework
⨍
Functions
28
◇
Types & classes
2
↓ 5 callers
Function
get_image_path
Returns a path to an image for a label at the given index. Args: image_lists: Dictionary of training images for each label. label_name: Lab
week10/lab-tf/retrain.py:187
↓ 3 callers
Function
get_or_create_bottleneck
Retrieves or calculates bottleneck values for an image. If a cached version of the bottleneck data exists on-disk, return that, otherwise calcula
week10/lab-tf/retrain.py:361
↓ 3 callers
Function
get_random_cached_bottlenecks
Retrieves bottleneck values for cached images. If no distortions are being applied, this function can retrieve the cached bottleneck values direc
week10/lab-tf/retrain.py:447
↓ 2 callers
Function
create_bottleneck_file
(bottleneck_path, image_lists, label_name, index, image_dir, category, sess, jpeg_d
week10/lab-tf/retrain.py:349
↓ 2 callers
Function
ensure_dir_exists
Makes sure the folder exists on disk. Args: dir_name: Path string to the folder we want to create.
week10/lab-tf/retrain.py:308
↓ 2 callers
Function
makeDataFileFromEmails
Iterate over files converting them to a single line then write the set of files to a single output file
week6/labs/Spam/hamster.py:3
↓ 2 callers
Function
run_bottleneck_on_image
Runs inference on an image to extract the 'bottleneck' summary layer. Args: sess: Current active TensorFlow Session. image_data: String of
week10/lab-tf/retrain.py:260
↓ 2 callers
Function
variable_summaries
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
week10/lab-tf/retrain.py:674
↓ 1 callers
Function
add_evaluation_step
Inserts the operations we need to evaluate the accuracy of our results. Args: result_tensor: The new final node that produces results. grou
week10/lab-tf/retrain.py:748
↓ 1 callers
Function
add_final_training_ops
Adds a new softmax and fully-connected layer for training. We need to retrain the top layer to identify our new classes, so this function adds th
week10/lab-tf/retrain.py:687
↓ 1 callers
Function
add_input_distortions
Creates the operations to apply the specified distortions. During training it can help to improve the results if we run the images through simple
week10/lab-tf/retrain.py:585
↓ 1 callers
Function
cache_bottlenecks
Ensures all the training, testing, and validation bottlenecks are cached. Because we're likely to read the same image multiple times (if there are
week10/lab-tf/retrain.py:409
↓ 1 callers
Function
create_image_lists
Builds a list of training images from the file system. Analyzes the sub folders in the image directory, splits them into stable training, testing
week10/lab-tf/retrain.py:105
↓ 1 callers
Function
create_inception_graph
Creates a graph from saved GraphDef file and returns a Graph object. Returns: Graph holding the trained Inception network, and various tensors
week10/lab-tf/retrain.py:240
↓ 1 callers
Function
get_bottleneck_path
Returns a path to a bottleneck file for a label at the given index. Args: image_lists: Dictionary of training images for each label. label_
week10/lab-tf/retrain.py:220
↓ 1 callers
Function
get_random_distorted_bottlenecks
Retrieves bottleneck values for training images, after distortions. If we're training with distortions like crops, scales, or flips, we have to r
week10/lab-tf/retrain.py:513
↓ 1 callers
Function
main
Driver program for a spam filter using Spark and MLLib
week6/labs/Spam/hamster.py:24
↓ 1 callers
Function
main
Driver program for a spam filter using Spark and MLLib
week6/labs/Spam/spamFilter.py:9
↓ 1 callers
Function
maybe_download_and_extract
Download and extract model tar file. If the pretrained model we're using doesn't already exist, this function downloads it from the TensorFlow.or
week10/lab-tf/retrain.py:280
↓ 1 callers
Function
nudge_dataset
This produces a dataset 5 times bigger than the original one, by moving the 8x8 images in X around by 1px to left, right, down, up
tempDemos/HandWritingNeuralNet.py:21
↓ 1 callers
Function
should_distort_images
Whether any distortions are enabled, from the input flags. Args: flip_left_right: Boolean whether to randomly mirror images horizontally. r
week10/lab-tf/retrain.py:567
Function
_progress
(count, block_size, total_size)
week10/lab-tf/retrain.py:293
Function
do_simple_map
(line)
week8/lab/converter.py:7
Function
main
(_)
week10/lab-tf/retrain.py:770
Method
main
(String[] args)
week6/hw/apache_spark_introduction/src/spark/JavaSparkTemplate.java:23
Method
main
(String[] args)
week6/hw/apache_spark_introduction/src/spark/SparkJava8Example.java:31
Function
read_list_of_floats_from_file
Reads list of floats from a given file. Args: file_path: Path to a file where list of floats was stored. Returns: Array of bottleneck val
week10/lab-tf/retrain.py:332
Function
write_list_of_floats_to_file
Writes a given list of floats to a binary file. Args: list_of_floats: List of floats we want to write to a file. file_path: Path to a file
week10/lab-tf/retrain.py:318