21,343 questions
0
votes
1
answer
124
views
Exception: model is not available
I'm getting a Model is not available error message with z3 using symbolic execution model.
The initial code has v1 and v2 added and it works but once I substitute v1 and v2 values, I get a model is ...
2
votes
1
answer
39
views
Django model filter for string
I have table which has string such as
id | url
1 | /myapi/1241/
2 | /myapi/
3 | /myapi/1423/
4 | /myapi/
Now I want to filter them like this below
myModel.Objects.filter(url="/myapi/****/&...
1
vote
1
answer
202
views
How to transition multiple states in a predefined sequence in dependence of the current state using `python-statemachine` events syntax?
Motivation
I would like to simulate a machine using the impressive python-statemachine package. It is the first time I've read about the concept of State Machine, so I've been spending about one day ...
0
votes
1
answer
21
views
How to sort collection in ObjectReef?
I was wondering is there any way to order collection of objects in ObjectReef?
Usually, in other programming languages, there is something like standard library to perform sorting on sets.
ObjectReef ...
1
vote
0
answers
76
views
How can I export vector layers to a spreadsheet in the Qgis model designer with a conditional branch algorithm?
I made a model that extract vector layers and export the attributes into a spreadsheet. It's completely functional.
But when I add a conditional branch algorithm to choose if I want to use or not an ...
0
votes
0
answers
620
views
Activating an Application in Odoo 18 Gives Model Not Found Error
I have a Model not found: meeting.management for this particular code snippet below and I do not understand why. I am using Odoo 18. So the error comes up after the application/module has already been ...
0
votes
1
answer
112
views
Databricks ML Model Permissions
All,
From the Models Menu, I picked a model (Loan Approval Data) from the various versions and was able to set it up for "Real-Time Inference". I also did the same for 1994 Census Data. I ...
0
votes
1
answer
43
views
Why is my OPL model not providing a solution for the evacuation problem?
I'm working on an OPL model for a two-floor evacuation simulation. The model is supposed to calculate the flow of people evacuating from various nodes to the exits while considering constraints like ...
0
votes
1
answer
39
views
How to update the child of a model based on a select option
My question might feel stupid but I got this model :
export interface Role {
id: number;
rolename: string;
permissions: string;
createdAt: string;
updatedAt: string;
}
export interface ...
1
vote
0
answers
21
views
How in Django panel redirect button don't work
I have this code in admin.py
@admin.register(BaseFundElement)
class BaseFundElementAdmin(admin.ModelAdmin):
list_display = ['registration_date', 'inventory_number', 'author', 'title', 'year', '...
1
vote
1
answer
68
views
Where is the boundary for creating a table with types in the database?
I have a model with QR codes that has a field called type. This field can have two values: 1 (Plate) or 2 (Sticker). I could simply create an enumeration of these types as an array in the model and ...
0
votes
0
answers
46
views
extending Users model
class Cyclist extends User
{
protected $table = 'users';
protected static function boot()
{
parent::boot();
static::addGlobalScope('cyclist', function (Builder $builder) {
$builder-&...
0
votes
0
answers
35
views
Calculating a partial dependency plot with prediction intervals for an SAR model in R
I am working with a spatial autoregressive model in R. I would like to create a partial dependency plot of the effect of predictor variables on the outcome (holding everything else constant). With ...
0
votes
0
answers
36
views
no attribute "get_shape" on custom objects in model
I am encountering an error when trying to load a Keras model with custom objects. The error message is:
AttributeError: 'function' object has no attribute 'get_shape'
This occurs in the following ...
1
vote
1
answer
399
views
FastAPI endpoint does not generate swagger doc for body parameter created without using Model
I have an API endpoint in FastAPI wherein I'm not using Models to access request body. I'm instead using the built-in type Body with a description.
@vault_router('/secret')
def get_secret(
token: ...
1
vote
0
answers
152
views
The model works fine in colab environment with TensorFlow 2.17.0
Local environment tensorflow version also 2.17 but when try to load this model locally it returns below error.
---------------------------------------------------------------------------
ValueError ...
-2
votes
1
answer
30
views
foreign key vs hasMany() in models Laravel [closed]
the user has many tasks, id add a foreign key in tasks table refer to user , if i want to delete user i want to delete all the tasks for this user , i do this in controller
task::where('user_id',$...
0
votes
1
answer
44
views
NetLogo Plots not being updated in the interface
i have been writing code for simulating the new CSDDD policy from EU for my research paper. But the code doesn't run properly and there's always some error. i solved some of them but then there's a ...
1
vote
0
answers
29
views
How do I set the seed for predictive modeling with glm.nb?
I’m uncertain about how to set the seed for training the model. When I use different seeds, the results vary. Is there a gold standard for choosing a seed, or should I try multiple seeds and select ...
0
votes
1
answer
43
views
@beforeSave() is not firing in adonisjs 5
In the following code, as you can see I am trying to update inspection_due_date when updated_at created or updated. But in the database, inspection_due_date is not getting updated. how can I sort this ...
3
votes
1
answer
51
views
Text summarization with deep learning
I'm finetuning the Mt5 model on the Arabic part of the Xl-sum data set
For ten epochs and the resulted manipulation model was stored in hugging face library, there were good results on the training ...
-2
votes
1
answer
72
views
Adding Constraints to Linear Programming Problem in PuLP
Question:
I am working on a linear programming problem using pulp in Python to model power generation constraints for multiple generators. I need to ensure the solution meets the following criteria:
...
0
votes
0
answers
57
views
Delete record and record associations based on multiple reference attributes
I have a join table that handles the logic of who owns what:
(Not final just my work in progress)
create_table :exercise_drills do |t|
t.references :exercise, foreign_key: true, null: false
t....
0
votes
0
answers
54
views
How can I use push() with router.post to populate a subdocument with contents from an HTML form?
I'm making a fitness log MEN CRUD app and am trying to push data to a MongoDB subdocument using an HTML form. When adding (creating) a new workout, the user is presented with two options between 'run' ...
0
votes
1
answer
2k
views
Does a model from LM Studio learn?
I just started with local AI models, my question is if I download a model and ask for a task and correct it, does the model remember the correction for the next time, I meant, is it growing in ...