Category "google-colaboratory"

How do I get a cell's color from a Google Sheets doc in Colab (python) without Google API?

I am importing a Google Sheets document into Google Colab for data analysis using python. I would like to get formatting information from the Google Sheets docu

ValueError: Shapes (None, 1) and (None, 5) are incompatible in keras

model = Sequential() model.add(Conv2D(128, (3, 3), activation='relu', input_shape=(64, 64, 3), padding='same')) model.add(MaxPooling2D(pool_size=(2, 2))) mode

ValueError: Shapes (None, 1) and (None, 5) are incompatible in keras

model = Sequential() model.add(Conv2D(128, (3, 3), activation='relu', input_shape=(64, 64, 3), padding='same')) model.add(MaxPooling2D(pool_size=(2, 2))) mode

Speed up ndarray process of RNN model using Google Colab

I'm working on a RNN model to recognize speech keywords. I found out that the code below need to run at least 5 minutes in google colab. Is there any way of cod

Expanding dataset and filling missing dates in Pandas

The raw dataset is below: DF When the start and end dates differ, we require daily granularity. Daily granularity ensures each row has the same start and end d

How to upload a 62 GB datasets to google colab

I am new to processing large datasets, new to google colab. I have a 62 GB datasets and I zipped it uploaded it to the Files section of google colab. Before upl

How can I make a setup command only run the first time a Jupyter notebook is ran?

Im doing a machine learning project in google colab. Each time an instance is started, I want to run these commands: ! mkdir ~/.kaggle # make directory ".kagg

Google Colab: pip install and imports from a custom script

In MyDrive/colab a I have these files: 00-imports.py with content... !pip install boto3 classes.py with content... class Test def __init__(self): print(

Usiing deepspeech package for automatic speech recognition

please i need some help. How can I use deepspeech as an API directly in google colab without using the command prompt : I want to load the pre_trained model,ins

AttributeError: 'MapDataset' object has no attribute 'client_ids' in tensorflow_federated TFF

I'm trying to test a compression technique in federated learning with non-IID using this API tff.simulation.datasets.build_single_label_dataset(), following the

How to solve the problem with installing google colab?

Tried to solve a simple problem from google.colab import files import numpy as np file = files.upload() !ls my_array = np.loadtxt('train_vector.csv', delimi

.py files in google colab

How can upload and run .py files in Google Colab? I can open the file as text and run it after copying, but I want to know if there is a way I can upload the .p

Importing Adam and ImageDataGenerator on google colab failed

I'm implementing a UNet neural network but I'm having some issues while importing libraries. I found a solution for a couple of them, but I still have a problem

Issue with mounting Google drive with colab

Following code worked fine for mounting google drive with colab until yesterday. But it is not working today ( January 20). It shows the error shown below. Any

How can i do many things to configure data with keras

I am a beginner learning deep learning by Keras. The ImageDataGenerator class in Keras and the flow_from_directory function made it easy to label images. But al

Python NSFW detection module nudenet not longer working?

I have been using the python module nudenet for my final degree project. I'm using google colab to run it. It worked correctly and without any problem during th

Live normalized stacked area chart in Google Colab

I am training a neural network for binary classification on Google Colab. Each epoch, I evaluate it on the validation dataset and calculate the percentages of t

torch.manual_seed(seed) get RuntimeError: CUDA error: device-side assert triggered

I am using GOOGLE COLAB when I get this error. Here is my code, I didn't find anything wrong, these code were right few hour ago but suddenly went wrong, I don'

Object Detection Google Colab: AttributeError: module 'tensorflow' has no attribute 'contrib'

I've been working on codes for Object Detection in Google Colab as in 1 and in 2 but, when using the following code sample: !git clone --quiet https://github.co

TypeError: 'type' object is not subscriptable when importing tensorflow_federated as tff

I'm working in colab notebook, and the importing of tff (import tensorflow_federated as tff) was working for months, but suddenly, now when I try to import tff