Skip to content

Instantly share code, notes, and snippets.

Avatar

Kadir Korkmaz korkmazkadir

View GitHub Profile
View nn.py
%matplotlib inline
from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
View cnn.py
from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
import numpy as p
batch_size = 100
num_classes = 10
View test_digit.py
from keras import backend as K
import numpy as p
output = model.predict_classes(x_test, verbose=1)
wrong_classified = []
wrong_classified_value = []
wrong_classified_real = []
@korkmazkadir
korkmazkadir / virtual_grid.c
Created Mar 30, 2018
MPI virtual Grid Creation
View virtual_grid.c
/*
* File: broadcast.c
* Author: korkmaka
*
* Created on 20 mars 2018, 09:52
*/
#include <unistd.h>
#include <stdio.h>
@korkmazkadir
korkmazkadir / ClientApp.java
Last active Feb 12, 2018
Client uygulaması main metod
View ClientApp.java
package simplechat;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
@korkmazkadir
korkmazkadir / ServerApp.java
Last active Feb 14, 2018
Server uygulaması main method
View ServerApp.java
package simplechat;
import java.io.IOException;
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
@korkmazkadir
korkmazkadir / Client.java
Created Feb 12, 2018
Chat Uygulaması Client Implementasyonu
View Client.java
package simplechat.common;
import java.rmi.RemoteException;
import java.util.LinkedHashSet;
import java.util.Set;
/**
*
* @author Kadir Korkmaz
@korkmazkadir
korkmazkadir / Server.java
Created Feb 12, 2018
Chat Client Server Implementasyonu
View Server.java
package simplechat.common;
import java.rmi.RemoteException;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
/**
*
@korkmazkadir
korkmazkadir / ChatClient.java
Created Feb 12, 2018
Chat Client Interface
View ChatClient.java
package simplechat.common;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
*
* @author Kadir Korkmaz
*/
@korkmazkadir
korkmazkadir / ChatServer.java
Last active Feb 11, 2018
Chat Server Interface
View ChatServer.java
package simplechat.common;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
*
* @author Kadir Korkmaz
*/