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 tensorflow as tf | |
import os | |
from tensorflow.python.keras.applications import ResNet50 | |
from tensorflow.python.keras.models import Sequential | |
from tensorflow.python.keras.layers import Dense, Flatten, GlobalAveragePooling2D | |
from tensorflow.python.keras.applications.resnet50 import preprocess_input | |
from tensorflow.python.keras.preprocessing.image import ImageDataGenerator |
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 pandas as pd | |
import numpy as np | |
#create a dummy data | |
user_id = [x for x in range(10000)] | |
recency = np.random.randint(low=1, high=10, size=10000) | |
monetary = np.random.randint(low=1, high=10, size=10000) | |
frequency = np.random.randint(low=1, high=10, size=10000) |
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 time | |
import datetime | |
import os | |
import pandas as pd | |
from multiprocessing import Process, Queue, current_process | |
def do_something(fromprocess): | |
time.sleep(1) | |
print("Operation Ended for Process:{}, process Id:{}".format( | |
current_process().name, os.getpid() |
OlderNewer