Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (428)

Results for model

December 1st, 2023
Pretrained model with stride doesn’t predict long text

My objective is to annotate long documents with bioformer-8L. I have been said to use stride and truncation so I don’t have to split my documents in c...

pythonnlphuggingface-transformers
Read more
November 28th, 2023
The DRF model serializer returns a dictionary with None values

I'm new to the Django and DRF. My serializer return dict such as: {'Name': None}. I see the same problem, but don't find answer in this. I have the fo...

pythondjangoserializationdjango-viewsdjango-rest-framework
Read more
November 28th, 2023
How to return the last two lines of summary output from a linear model in R?

After finding a regression prediction in lm I want to return only last two lines of the summary. What would be the best function to do use? my_model_l...

rsummarytaillm
Read more
November 25th, 2023
Tuned Faster R-CNN model detect maximum 100 objects, but there is 300+ objects on the image. How to increase this maximum?

I use this code to prepare model for optimization: # load Faster RCNN pre-trained model Faster_RCNN_tuned_model = torchvision.models.detection.fasterr...

pytorchtorchvisionfaster-rcnn
Read more
November 25th, 2023
Using openapi-typescript-codegen, why does this Swagger schema produce a model of Record<string, any>?

My swagger.json includes this schema: "schemas": { "BuildFruitBody": { "properties": { "id": { ...

typescriptswaggeropenapi
Read more
November 23rd, 2023
Django can't login after sign up using custom model

So i create a custom model with AbstractUser: class CustomUser(AbstractUser): email = models.EmailField(unique=True) phone_regex = RegexValida...

djangodjango-models
Read more
November 25th, 2023
How to write custom prompt-template in llama2 model using langchain?

I am using Llama2[7b model]-hugging face and lang-chain to do a simple address segregation/classification task. I want the model to find the city, sta...

langchainprompt
Read more
November 27th, 2023
Plot the SHAP values for LSTM model in python

I have the following code that is working. import numpy as np import shap from tensorflow import keras X = np.array([[(1,2,3,3,1),(3,2,1,3,2),(3,2,2,...

pythonnumpykerasshapmachine-learning
Read more
November 23rd, 2023
keras.Model.fit does not work correctly with generator and sparse categorical crossentropy loss

tf.keras.Model.fit(x=generator) does not work correctly with SparseCategoricalCrossentropy/sparce_categorical_crossentropy loss function with a genera...

pythontensorflowkerasgeneratormachine-learning
Read more
November 22nd, 2023
How do I tell Entity Framework to set a 1:1 FK entry when the child model being deleted has no 1:many property to the parent?

I have a parent object as follows: public class Event { public int Id { get; private set; } public Interest? Interest { get; set; } } public ...

c#.netentity-frameworkentity-framework-core
Read more
November 20th, 2023
How can I extract the 'Pixel Depth' of a raster as a value using Model Builder in ArcGIS Pro (or evt. a python script)

In ArcGIS Pro I want to automate some tests on rasters, either stored in .gdb- or .tiff-files. One of the tests requires checking the Pixel Type and P...

rasterarcgisesriarcpy
Read more
November 19th, 2023
Seeking Advice on Designing a Clean Data Class (Model) in Kotlin

I'm currently working on designing a neat data class (model) for an AlarmTime instance, which will play the role of a variable in the Alarm class. I'v...

modelkotlinarchitecturedata-classclean-architecture
Read more
November 18th, 2023
Controller ViewResult returns empty Model collection while doing Unit test using xUnit and Mock

When i debugging the controller index method it returns an empty model where I do mistake? I am using Moq by Daniel Cazzulino and xUnit Following is m...

c#unit-testingasp.net-coreasp.net-core-mvcmoq
Read more
November 24th, 2023
Implementing Dynamic Data Sampling for BERT Language Model Training with PyTorch DataLoader

I'm currently in the process of building a BERT language model from scratch for educational purposes. While constructing the model itself was a smooth...

pythonpytorchbert-language-modeldataloader
Read more
November 21st, 2023
Error loading saved hybrid quantum (pennylane + tensorflow keras) model: Unknown layer: 'KerasLayer'

I'm creating a hybrid model consisting of classical convolutional layers and a quantum output using Tensorflow. I can save the model in either .h5 or ...

tensorflowkerastensorflow2.0tensorflow-quantum
Read more
November 20th, 2023
"Cannot Synthesize" -- Why is this class not ready to be declared "@Model" for use with SwiftData?

I am trying to convert the Landmarks app to SwiftData... why isn't this class conforming to codable/decodable? It won't compile but the messages are ...

iosswiftuiswiftswift-dataios17
Read more
November 25th, 2023
Flutter model using for loop

i want to do the looping so that "NovelChapter"s chapter_01.txt increment so i dont need to write again and again like below and the Sypnosis stays li...

flutterloops
Read more
November 20th, 2023
Change the table name of the Model in django admin

I want to change my django admin table name in django admin panel I want to change the Products name in the top of that table, for example I want to c...

pythondjangodjango-admindjango-modelsbackend
Read more
November 15th, 2023
Extract 95% confidence interval values from kaplan meier model

After computing a kaplan meier model I get the km_fit list below. How can I extract 95% confidence interval values now? # Plot Kaplan-Meier curves sg1...

rconfidence-interval
Read more
November 15th, 2023
OpenAI API error: "You tried to access openai.Model, but this is no longer supported in openai\>=1.0.0"

Using Visual Studio Code and PyCharm, after install openai (pip install openai) an strange error are desesperating me! please help!, if for example I ...

pythonvisual-studio-codeopenai-apierror-handlingconfiguration
Read more
November 19th, 2023
Specify pydantic model fields from a data source

I have a need for a pydantic model that would dynamically create model fields from another data source. I'd like to do something like this: import pyd...

python-typingpydantic
Read more
November 13th, 2023
How can I retrieve the value from a method in Django's model?

How to retrieve value from a method in Django's model I have two models Model1 and Model2, Model2 is related to Model1. The method is located in Model...

djangodjango-models
Read more
November 12th, 2023
Error 'tuple.index(x): x not in tuple' in 'model.transcribe' from wishper in python

I am trying to make a program that, among other things, is capable of transcribing audio files selected by the user as well as voluntarily choosing th...

pythonpython-3.xopenai-apitranscription
Read more
November 10th, 2023
Change Model data after form submission in Django

Im writing a Booking System in Django with ModelForms, I Want to change value of a Boolean field in a ForeginKey model when form saves. models.py clas...

djangodjango-modelsdjango-viewsdjango-forms
Read more
November 9th, 2023
Custom IFC export settings for Autodesk Platform Services Model Derivative?

I'm aware that I can select the exportSettingName in the IFC conversion config as described here but this must be a configuration already present in t...

autodesk-forgeautodesk-model-derivative
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?