This file contains 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 numpy as np | |
import matplotlib.pyplot as pyt | |
x = np.array([ | |
[0, 0, 0, 0], | |
[0, 0, 0, 1], | |
[0, 0, 1, 0], | |
[0, 0, 1, 1], | |
[0, 1, 0, 0], | |
[0, 1, 0, 1], |
This file contains 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 __future__ import annotations | |
import traceback | |
from numbers import Number | |
from typing import Union, Callable, Tuple | |
import beepy | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from numpy import ndarray |
This file contains 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 | |
from CyDifferentTypesOfLayers import * | |
class ConvolutionLayer(LayerChain): | |
def __init__(this, s_in: DimsND, filter_size: int, lr: float): | |
this.conv = ConvolutiveParametersLayer(s_in, lr, (filter_size, filter_size)); | |
this.bias = AdditiveParametersLayer(this.conv.s_out, this.conv.s_out, lr); |
This file contains 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 java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.util.Optional; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* Just give in two arguments, one for the page link and the other for the output file, as commandline arguments. |
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 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
// https=//hackr.io/blog/java-projects Currency Converter | |
import java.net.URL; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
public class CurrencyConverter { | |
public static void main(String[] args) throws Exception { | |
if (args == null || args.length == 0 || args[0].equals("--help") || args[0].equals("-h")) { |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct n { | |
float coef; | |
int exp; | |
struct n *next; | |
} Node; | |
Node *makeNode(float coef, int exp) { |