Baselight

AI4Code Custom Data

Additional Data for AI4Code Competition

@kaggle.odins0n_ai4code_custom_data

Data
@kaggle.odins0n_ai4code_custom_data.data

  • 520.65 MB
  • 5477675 rows
  • 5 columns
source

Source

cell_type

Cell Type

rank

Rank

pct_rank

Pct Rank

notebook_id

Notebook Id

Process Datamarkdown
import os print(os.listdir('../input/sasuke'))code10.0909090909090909
from PIL import Image import matplotlib.pyplot as pltcode20.1818181818181818
img = Image.open('../input/sasuke/.jpg') img = img.resize((224,224)) plt.imshow(img)code30.2727272727272727
import numpy as np test_x = np.array(img) / 255.0 print(test_x.shape)code40.3636363636363636
test_x = test_x.reshape(1,224,224,3)code50.4545454545454545
Load Modelmarkdown60.5454545454545454
Import Model #from tensorflow.keras.applications import VGG16 #from tensorflow.keras.applications import ResNet101V2 from tensorflow.keras.applications import InceptionV3 #from tensorflow.keras.applications.vgg16 import preprocess_input, decode_predictions #from tensorflow.keras.applications.resn…code70.6363636363636364
Predictionmarkdown80.7272727272727273
model prediction preds = model.predict(test_x) # decode prediction dec_preds = decode_predictions(preds, top=3)[0] print('Predicted:', dec_preds)code90.8181818181818182

CREATE TABLE data (
  "source" VARCHAR,
  "cell_type" VARCHAR,
  "rank" BIGINT,
  "pct_rank" DOUBLE,
  "notebook_id" BIGINT
);

Share link

Anyone who has the link will be able to view this.