[環境構築]SIGNATE用 AWS SageMaker Studio Lab
いきなり結論
SageMaker Studio Labはあまりオススメしない… ※用途による
背景
プログラミングコンペに参加しようと思い、メジャーなKaggleもいいが、ビジネスの実課題に寄っているのはSIGNATEと聞いたため、まずはそちらから触ってみようと思った。
簡単な予測モデル作成なら手元のPCでも可能ではあるが、せっかくAWS AI Practitionerも取ったのでAWSを使ってみようと思った。しかしSIGNATEをAWSでやっている記事がない…
KaggleならGCPだし、そもそもSIGNATE人口が少ないせいか…
SageMakerで構築してもよいのだが、SageMaker Studio Labは無料で使えるということなのでまずはこちらを試してみた。
ということで以下の記事を参考に、SageMaker Studio Labの環境構築から。
環境構築
環境構築といってもアカウントを登録するだけ。
AWSのアカウントとは異なるようで、再度登録から必要だった。
登録が完了すると以下のように表示される。CPU/GPUで使用時間が決まっており、Start runtimeをクリックするとインスタンスが起動する。

UIはJupyter。データはドラッグ&ドロップで取り込むことが可能。15GBの無料ストレージがあるので、作業を中断することも可能。
機械学習の勉強用のサービスということなので、簡単に始められるのはメリット。

オススメしない理由
使い始められる状態にするのは本当に簡単なのだが、欠点として混雑しているタイミングではインスタンスが起動できない。
これがたまにならいいのだが、5回ほど試して実際に立ち上がったのは1回のみ…

さすがにこれでは隙間時間にちょっと試すという使い方が難しい。
もしかしたら空いている時間帯があるのかもしれないが、ある程度自由に使いたい場合には別のサービスやローカルで作業するのが良いだろうと思い、Studio Labの使用は諦めた。。
以下は日本語記事を手作業で英語に直し、ChatGPTに修正してもらった英文
TL;DR
I don’t really recommend SageMaker Studio Lab — depending on your use case.
Background
I decided to participate in programming competitions.
Kaggle is the most popular option, but I had heard that SIGNATE focuses more on real-world business problems, so I decided to try SIGNATE first.
For building simple prediction models, my local PC would be sufficient.
However, since I had recently obtained the AWS AI Practitioner certification, I wanted to try using AWS.
Surprisingly, I couldn’t find any articles about using SIGNATE with AWS.
For Kaggle, many people use GCP, but perhaps because SIGNATE has fewer users, there isn’t much information available.
I could have built an environment using SageMaker itself, but SageMaker Studio Lab is free to use, so I decided to try that first.
I followed the article below to set up the SageMaker Studio Lab environment:
Environment Setup
Although I say “environment setup,” all I needed to do was register an account.
SageMaker Studio Lab uses a different account from a regular AWS account, so I had to register separately.
After completing the registration, the screen below is displayed.
Usage time is limited depending on whether you use CPU or GPU, and clicking “Start runtime” launches the instance.
The UI is based on Jupyter.
You can upload data via drag and drop, and since 15 GB of free storage is provided, you can stop your work and resume it later.
Because this service is designed for learning machine learning, the ease of getting started is a major advantage.
Why I Don’t Recommend It
Getting started with SageMaker Studio Lab is extremely easy.
However, one major drawback is that you sometimes cannot start an instance during busy periods.
If this happened only occasionally, it wouldn’t be a big issue.
But in my case, out of about five attempts, the instance actually started only once.
With this level of availability, it’s difficult to use the service casually during short breaks.
There might be less crowded time slots, but if you want to use an environment more freely, I think it’s better to use another service or work locally.
For that reason, I decided to stop using Studio Lab.
Discussion