![](/img/trans.png)
[英]cannot import name 'PartialState' from 'accelerate' when using Huggingface pipeline on Kaggle notebook?
在 Kaggle 筆記本上從 Huggingface 導入管道時, 它拋出這個錯誤: 我該如何解決這個錯誤? ...
[英]cannot import name 'PartialState' from 'accelerate' when using Huggingface pipeline on Kaggle notebook?
在 Kaggle 筆記本上從 Huggingface 導入管道時, 它拋出這個錯誤: 我該如何解決這個錯誤? ...
[英]What differs in while and for loops?
這是來自Kaggle的問題。 我嘗試使用 while 循環,但我想我在這里遺漏了一些基本的東西。 使用while循環的注釋代碼是我的開始,未注釋的代碼是解決方案。 網站上給出的詳細解決方案粘貼如下: 我們解決方案的關鍵是調用范圍。 range(len(meals)) 會給我們所有的膳食指數。 如 ...
[英]How to connect two dataframes with one line Code
我正在解決 Titanic Kaggle 代碼並使用 pandas 進行數據分析。數據在這里 ( https://www.kaggle.com/competitions/titanic/data ) 我有兩個 Dataframe,我想用聚合代碼連接它們。 而我將這些代碼與列方向聯系起來的結論就是這樣 ...
[英]How to created stacked bar plot with spesific value?
我試圖探索這個數據集https://www.kaggle.com/datasets/thedevastator/analyzing-credit-card-spending-habits-in-india/code?datasetId=2731425&sortBy=voteCount我想創 ...
[英]Could not import torch_geometric, it says "undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs"
我正在嘗試找到錯誤的解決方案: OSError: /opt/conda/lib/python3.7/site-packages/torch_sparse/_version_cuda.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKS ...
[英]How can I pull data from a .sqlite file into Databricks Spark?
我在 Kaggle 上找到了一個我喜歡的數據集,但是唯一的下載選項是包含三個表的 .sqlite 文件。 無論如何我可以從 Databricks 訪問這些數據嗎? ...
[英]Error when trying to clone darknet on kaggle notebook . Help anyone?
代碼 --> :git clone http.//github.com/AlexeyAB/dar.net/ 消息 --> 克隆到“dar.net”...致命:無法訪問“http://github.com/AlexeyAB/dar.net/”:無法解析主機:github.com 我嘗試使 ...
[英]IndexError: Target 5 is out of bounds
我正在嘗試訓練 ANN 但得到 IndexError:目標 5 越界我認為問題出在我拆分數據的這部分代碼中: 我在這里做錯了什么嗎? ...
[英]Display name is empty for tensor flow lite model generated using teachable machine
我正在使用可教學機器生成一個tensorflow-lite model 並在我的 android 應用程序中使用該 model。 tensor flow lite model 的結果顯示顯示名稱為空。 下面是我的teachable-machine過程的截圖。 我添加了 Cats and Dogs ...
[英]How to recursively save GAN generated images to a folder in Kaggle
使用我的 model 末尾的這段代碼片段,我使用 Colab 成功地將我的 Gan 生成圖像遞歸保存到 genpyImage 子文件夾,作為位於我的谷歌驅動器中的 jpeg 文件。 我想在 kaggle 中做同樣的事情。 我已成功加載訓練數據,model 在 kaggle 中工作正常,但無法在 k ...
[英]Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required
當我嘗試查找 MI 值時,此錯誤不斷出現。 我的代碼如下 如果你想要完整的筆記本,這里有一個鏈接https://www.kaggle.com/code/snigdhkarki/house-price-competition 錯誤如下 只有少數幾個地方提出了這個問題,即使在那些地方我也找不到我的問題的 ...
[英]Loops are devil
在桌面 RStudio 中有這樣的代碼是可以的: 我得到以下 output: 但在 Kaggle 中完全相同的代碼會產生錯誤: 我的問題是:哪里出了問題? ...
[英]R chart in Kaggle
我在 Kaggle 中使用 R 編寫了以下代碼,但輸出錯誤,我再次安裝包 tidy verse 和庫 ggplot2,仍然顯示錯誤。 希望能在這里找到解決方法,謝謝! ...
[英]Getting the same tensor for "prob" and "class" in FastAI TabularLearner
我對 FastAI 很陌生。 我剛剛在這里完成了 fastai 課程的第一課: https://course.fast.ai/並且正在 kaggle 上的“災難機器學習”Titanic 數據集上實施表格學習器。 這是我的代碼:from fastcore.all import * from fasta ...
[英]Found array with 0 feature(s) (shape=(10792, 0)) while a minimum of 1 is required
嘿,我正在使用 Jupitor Notebook 並進行機器學習。 我寫了這段代碼但得到了這個錯誤,我不知道錯誤是什么。 這是我的參考代碼: 問題的解決 ...
[英]Getting this error called on Kaggle as ""ImportError: cannot import name 'DecisionBoundaryDisplay' from 'sklearn.inspection'""
我在 stackoverflow 上搜索過這個錯誤,有人問過它,但我正在使用 Kaggle 並在其中工作,它不需要任何環境和庫來安裝和設置。 幫我解決這個問題。 ...
[英]numpy.core._exceptions.MemoryError: Unable to allocate space for array
錯誤 https://www.kaggle.com/datasets.netflix-inc.netflix-prize-data 我正在處理 this.netflix 獎品數據集,其中有很多電影和用戶 ID 我的工作是應用矩陣分解,所以我需要創建一個 2700000 X 18000 的矩陣,它將 ...
[英]Is LightGBM available for Mac M1?
我的目標是學習筆記本。 它有 97% 的召回率,而我正在與 F1 分數“Attrited Customer”77.9% 作斗爭。 問題是筆記本使用 LightGBM。 我無法安裝 LightGBM。 我試過的: pip install lightgbm -> 拋出錯誤python setu ...
[英]module 'tensorflow.keras.applications' has no attribute 'convnext'
我正在嘗試使用 ConvNextXLarge 並且我有以下代碼: 但是我得到標題中的錯誤: 模塊“tensorflow.keras.applications”沒有屬性“convnext” 我很確定這與我在 Kaggle 中使用 tensorflow v2.6 但我不知道如何升級有關 ...
[英]What does "ValueError: cannot reshape array of size 279936 into shape (529,529)" mean?
我試圖運行一些 RNN 代碼。 運行后,我得到一個“ValueError:無法將輸入數組從形狀 (4096,4374) 廣播到形狀 (64,64)”。 我怎樣才能解決這個問題? ...