Category "google-colaboratory"

how to plot input and output shapes on top of each other using polt_model in keras

I want to plot my model using Keras.utils.plot_model function. my problem is that when I plot the model, the input and output shapes do not place on top of each

Access Google Sheets on Google Colaboratory

Hi I am using Google Colaboratory (similar to Jupyter Notebook). Does anyone know how to access data from Google Sheets using Google Colaboratory notebook?

T5Tokenizer requires the SentencePiece library but it was not found in your environment

I am trying to explore T5 this is the code !pip install transformers from transformers import T5Tokenizer, T5ForConditionalGeneration qa_input = """question: Wh

TypeError: Failed to convert elements of SparseTensor to Tensor

TypeError: Failed to convert elements of SparseTensor(indices=Tensor("DeserializeSparse:0", shape=(None, 2), dtype=int64), values=Tensor("DeserializeSparse:1",

Contextual version conflict error, Google colab

I am trying to install and run sunpy on Google colab. It requires a package astropy version 3.1 or higher. Even after installing astropy version 3.2.1 when I im

How to clear GPU memory WITHOUT restarting runtime in Google Colaboratory (Tensorflow)

I want to run hyperparameter tuning for a Neural Style Transfer algorithm which results in having a for-loop in which my model outputs an image generated with d

Getting Error 403 in Google Colab with Tensorboard with Firefox

I have a tfevent file already present on my Drive and I have successfully connected it to Google Colab. After searching within the issues of Tensorboard Github,

Git folder to google colab

I want to download a folder from github (not the entire repo!) into google colab. How can I do this using a google colab cell execution? For files I achieve thi

Trigger Python script located in Google Drive using Google Sheets

I have created a Python script (using Google Colab) and stored it on my Google Drive. When the Python script runs it automatically reads a Google Sheet in the s

Using pyspark in Google Colab

This is my first question here after using a lot of StackOverflow so correct me if I give inaccurate or incomplete info Up until this week I had a colab notebo

Error while installing Spark on Google Colab

I am getting error while installing spark on Google Colab. It says tar: spark-2.2.1-bin-hadoop2.7.tgz: Cannot open: No such file or directory tar: Error

Split files for train and test in Google Colab

I have successfully trained and tested my model on local jupyter notebook, but I want to try the same code in Google Colab as I want to try other expensive mode

How to mount onedrive to google colaboratory?

I use google colab with google drive in deep-learning training, but although I've 100gb premium account, sometimes it accouring error that find: ‘/content

AttributeError: 'ArabertPreprocessor' object has no attribute 'farasa_segmenter'

I had this error while using AraBERT, from arabert.preprocess import ArabertPreprocessor model_name = "bert-base-arabertv2" arabert_prep = ArabertPreprocessor(

Is there a way to grant access to gcloud using only information in the JSON key file but not the JSON file itself (on Colab)?

To grant access to Google cloud services without google account, a json key file is needed in the following way: !gcloud auth activate-service-account --key-fil

How to access Cloud SQL from Google Colab

I have a Google Cloud SQL instance with a public IP, only accessible to whitelisted IP and through an SSL connection. I'd like to know how I can connect to thi

mp.set_start_method('spawn') triggered an error saying the context is already been set

Here is my full code I have succeeded to reproduce the behavior of my main code with a little snippet. In a Google Colab Env, suppose I setup hardware accele

Google Colab not updating package?

I am trying to use seaborn==0.8.1 in an ipynb on Google colab. Here is my code: """General import statements and settings config.""" !pip install seaborn==0.8.

How can we use Selenium Webdriver in colab.research.google.com?

I want to use Selenium Webdriver of Chrome in colab.research.google.com for fast processing. I was able to install Selenium using !pip install selenium but the

Python Tutor + Google Colab

Preambula. I'm trying to use Google Colab to teach students Python. The problem is, there is no nice tool to visualize code execution. I tried to use Python Tut