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
from keras.datasets import mnist | |
(train_images, train_labels), (test_images, test_labels) = mnist.load_data() | |
from keras import models | |
from keras import layers | |
network = models.Sequential() | |
network.add(layers.Dense(512, activation='relu', input_shape=(28 * 28,))) | |
network.add(layers.Dense(10, activation='softmax')) | |
network.compile(optimizer='rmsprop', | |
loss='categorical_crossentropy', |
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
from keras.datasets import mnist | |
(train_images, train_labels), (test_images, test_labels) = mnist.load_data() | |
digit = train_images[4] | |
import matplotlib.pyplot as plt | |
plt.imshow(digit, cmap=plt.cm.binary) | |
plt.show() |
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
// C++ program to print DFS traversal from | |
// a given vertex in a given graph | |
#include<iostream> | |
#include<list> | |
using namespace std; | |
// Graph class represents a directed graph | |
// using adjacency list representation | |
class Graph | |
{ |
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
#include<iostream> | |
#include<climits> | |
using namespace std; | |
// Prototype of a utility function to swap two integers | |
void swap(int *x, int *y); | |
// A class for Min Heap | |
class MinHeap | |
{ |
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
#include <iostream> | |
struct node | |
{ | |
int key; | |
struct node *left, *right; | |
}; | |
// A utility function to create a new BST node | |
struct node *newNode(int item) |
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
// C program for different tree traversals | |
#include <iostream> | |
using namespace std; | |
/* A binary tree node has data, pointer to left child | |
and a pointer to right child */ | |
struct Node | |
{ | |
int data; | |
struct Node* left, *right; |
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
#include <iostream> | |
using namespace std; | |
struct node | |
{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; | |
/* newNode() allocates a new node with the given data and NULL left and |
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
#include <iostream> | |
using namespace std; | |
// A utility function to swap two elements | |
void swap(int* a, int* b) | |
{ | |
int t = *a; | |
*a = *b; | |
*b = t; | |
} |
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
#include <iostream> | |
using namespace std; | |
//template for generic type | |
template<typename K, typename V> | |
//Hashnode class | |
class HashNode | |
{ | |
public: |
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
{ | |
"author": "Clark Ngo", | |
"name": "fcc-learn-node-with-express", | |
"version": "0.1.0", | |
"dependencies": { | |
"express": "^4.14.0", | |
"body-parser": "^1.15.2", | |
"cookie-parser": "^1.4.3", | |
"fcc-express-bground": "https://github.com/Em-Ant/fcc-express-bground-pkg.git" | |
}, |
NewerOlder