Results for model-view-controller
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...
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...
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...
I use this code to prepare model for optimization: # load Faster RCNN pre-trained model Faster_RCNN_tuned_model = torchvision.models.detection.fasterr...
My swagger.json includes this schema: "schemas": { "BuildFruitBody": { "properties": { "id": { ...
So i create a custom model with AbstractUser: class CustomUser(AbstractUser): email = models.EmailField(unique=True) phone_regex = RegexValida...
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...
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,...
tf.keras.Model.fit(x=generator) does not work correctly with SparseCategoricalCrossentropy/sparce_categorical_crossentropy loss function with a genera...
I have a parent object as follows: public class Event { public int Id { get; private set; } public Interest? Interest { get; set; } } public ...
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...
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...
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...
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 ...
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 ...
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...
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...
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...
Using Visual Studio Code and PyCharm, after install openai (pip install openai) an strange error are desesperating me! please help!, if for example I ...
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...
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...
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...
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...
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...
I have an Ingredient class where each object has different values of nutrients (e.g. Zinc, Magnesium, Protein etc.). Further, each nutrient has a diff...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?