cost 115 ms
while 和 for 循环有什么不同? - What differs in while and for loops?

这是来自Kaggle的问题。 我尝试使用 while 循环,但我想我在这里遗漏了一些基本的东西。 使用while循环的注释代码是我的开始,未注释的代码是解决方案。 网站上给出的详细解决方案粘贴如下: 我们解决方案的关键是调用范围。 range(len(meals)) 会给我们所有的膳食指数。 如 ...

使用可教机器生成的张量流精简版 model 的显示名称为空 - 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 ...

如何递归地将 GAN 生成的图像保存到 Kaggle 中的文件夹中 - How to recursively save GAN generated images to a folder in Kaggle

使用我的 model 末尾的这段代码片段,我使用 Colab 成功地将我的 Gan 生成图像递归保存到 genpyImage 子文件夹,作为位于我的谷歌驱动器中的 jpeg 文件。 我想在 kaggle 中做同样的事情。 我已成功加载训练数据,model 在 kaggle 中工作正常,但无法在 k ...

找到具有 0 个样本 (shape=(0, 1)) 的数组,而至少需要 1 个 - 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 错误如下 只有少数几个地方提出了这个问题,即使在那些地方我也找不到我的问题的 ...

Kaggle 中的 R 图表 - R chart in Kaggle

我在 Kaggle 中使用 R 编写了以下代码,但输出错误,我再次安装包 tidy verse 和库 ggplot2,仍然显示错误。 希望能在这里找到解决方法,谢谢! ...

在 Kaggle 上获取此错误称为“”ImportError:无法从“sklearn.inspection”中导入名称“DecisionBoundaryDisplay”” - Getting this error called on Kaggle as ""ImportError: cannot import name 'DecisionBoundaryDisplay' from 'sklearn.inspection'""

我在 stackoverflow 上搜索过这个错误,有人问过它,但我正在使用 Kaggle 并在其中工作,它不需要任何环境和库来安装和设置。 帮我解决这个问题。 ...

模块“tensorflow.keras.applications”没有属性“convnext” - module 'tensorflow.keras.applications' has no attribute 'convnext'

我正在尝试使用 ConvNextXLarge 并且我有以下代码: 但是我得到标题中的错误: 模块“tensorflow.keras.applications”没有属性“convnext” 我很确定这与我在 Kaggle 中使用 tensorflow v2.6 但我不知道如何升级有关 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM