Questions tagged [model]
Part of the MVC pattern, the Model manages the behaviour and data of the application.
20,602
questions
0
votes
1
answer
23
views
Trying to predict, prediction value greater than 0.5 it will be positive prediction (1) , under 0.5 value as 0 ,negative , but having problem in loop
After training the model , evaluating prediction that is on dtype=float32.
y_pred = model.predict(x_test)
y_pred
array([[0.952564 ],
[0.40119413],
[0.8223132 ],
...,
[0....
0
votes
1
answer
31
views
Flutter: _CastError (type 'Null' is not a subtype of type 'String' in type cast)
I am building an app where the user is able to store favorites locally on their device.
Therefor I am using the SQFlite package.
Opening the Favorite page I am running the following error:
Exception ...
0
votes
1
answer
20
views
Gaussian Mixture model -- how to deal with missing value from the dataset?
I'm training a GMM, but I found there's a problem because my dataset includes Nan value.
First, I thought it would be okay if I changed all the NAN to 0. However, when I plot it, we can see this. (The ...
0
votes
0
answers
13
views
... your model is not the size the the model expected. Expected to see 1 Tensor(s), but instead got 3 Tensors(s). error predict function tensorflow js
I have a trained python model, it gives an error when predicting. How to pass an array to input?
Help me please!
test data:
data = [[0.6538461538461539, 0.15384615384615385, 0.6923076923076923]] (THIS ...
0
votes
0
answers
25
views
how to set data from multiple for loop to mainmodel
@Override
public void onMessage(WebSocket webSocket, String text) {
output("Receiving : " + text);
System.out.println("Receiving: " + text);
runOnUiThread(new Runnable(...
1
vote
1
answer
30
views
Asp.NET MVC DisplayName is not showing
I have added the display name however it is not showing up when I run the application.
Employee.cs
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
[Required]
[DisplayName(&...
0
votes
0
answers
5
views
Keras model optimization with bayesian optimization. Model summary is different
I am trying to tune my cnn model with tuner keras. After running the bayesian search, when I display model.summary() it is totally different from the the bayesian optimization parameters found by the ...
-3
votes
0
answers
22
views
How to model and decode data from JSON nested array without property names, in SwiftUI [closed]
Sample Json data:
[[15943, 1.1,2.2,3.3,4.4]]
Any advice and help would be greatly appreciated. Thank you in advance
-2
votes
0
answers
13
views
Why efficientnet_lite0 better than other (lite1-lite4) on Statefarm dataset? [closed]
I tried with Efficientnet_lite model on Statefarm dataset with the coding below....
Even Efficientnet_lite0 which consist of less parameter and model size, it out perform the other Efficientnet_lite[1-...
0
votes
0
answers
10
views
load xgboost model from different machine problem
well, what I want to do is quite simple, I use gpu machine to trian a xgboost model and I want to use this model in a non-gpu computer. And the xgboost version in both machine are 1.6.1, joblib is the ...
-1
votes
1
answer
14
views
Django django.db.utils.IntegrityError
We've a table with thousands of rows. Now we are in need to make 1 existing field to be Foreign Key from another table.
Table 'list' got all the names and their details.
Table 'State' is a new table ...
1
vote
1
answer
31
views
Multivariate time series - is there notation to select all the variables, or do they all have to be written out?
I'm working to build a multivariate time series to make predictions about labor in the United States. The fpp3 package is excellent, but I don't see a notation to model all the variables.
For example, ...
1
vote
2
answers
59
views
Model Relationship django
I'd appreciate your help. I have two models. In the Bids model you will find current_bid_cmp. I would like from the ListingAuctions model to be able to access the corresponding current_bid_cmp of the ...
0
votes
0
answers
19
views
Prevent firing of manifest.json dataSource onLoad of App
manifest.json entry:
"sap.ui5": {
"models": {
"post": {
"preload": false,
"dataSource": "...
-1
votes
1
answer
51
views
WPF - MVVM - How does the ViewModel set its Properties?
My question is, where exactly do I call my "GetBookInformation()" Method and assign its return value to the ViewModel Property "Books"?
Do I do all of this inside of the ViewModel ...
-2
votes
0
answers
13
views
ML model and generate log which provide accuracy rate [closed]
I am asked to work on a NLP model to extract data from PDF for many fields. Ask is also to generate a log which will say that for which PDF extraction is 100% accurate and for which it is not. Is ...
-1
votes
1
answer
18
views
To find best classification model for data
I have data following largest extreme value distribution model, which classification model would be best for this? I'm trying to perform binary classification with predictive modeling...
-1
votes
0
answers
17
views
Why Keras Model Weight Size is coming in MB
I built a simple deep learning model with 200 input nodes, 1 hidden layer with 200 dense nodes, and with Relu function. When I saved the model weights using model.save_weights() and converted the ...
0
votes
0
answers
12
views
MLflow - How the model storage aborescence works behind the model registry APIs?
I want to understand how the model storage aborescence works behind the model registry APIs.
I wanted to know if the stageworks like a tag,
if the . pickel model is moved to different branches ...
0
votes
0
answers
27
views
Laravel 8 Check which columns is affected by cascade delete
I have a Laravel 8 project and I must implement cascade delete on it. It's okay but i want to warn the user if he deletes something, then belonging items will be deleted too.
So i want to know if i ...
-3
votes
0
answers
24
views
Tkinter methods give attribute error in python [closed]
Whenever i use methods like insert() or get() it gives me an attribute error, tkinter model is installed and is not blocked by a local file idk what's wrong, most methods like label, buttons and Enrty ...
1
vote
0
answers
37
views
Laravel balde component with Alpinejs to pass back data to parent model
Having the following blade component used with alpinejs how can I pass the model value to the parent?
<x-choises
x-model="formData.association"
:options="$associations"
:...
0
votes
0
answers
18
views
additive or the multiplicative component model
My task:
I have to decide that the additive or the multiplicative component model (with a nonparametric trend function but without seasonality) is more suitable for my time series.
I found these ...
0
votes
0
answers
42
views
How to change the length of each note in an audio? [closed]
I'm stuck in my recent project, it's about changing the audio length and dynamics.
So here is the question that I'm curious about :
if there are any model or tool that can adjust the duration of each ...
2
votes
0
answers
18
views
Unique constraints in Prisma
What's the best way to model a unique rule in Prisma that matches below?
user can't add same data twice by a given field. other users can add this field.
I'm not sure I understand how @unique versus @...
0
votes
0
answers
19
views
pytorch model summary order is different from the model's order in forward function
I used the Spatial Transformer Network tutorial in pytorch website
https://pytorch.org/tutorials/intermediate/spatial_transformer_tutorial.html
model looks like below
class Net(nn.Module):
def ...
0
votes
0
answers
27
views
panel data visualisation R modelisation
I am trying to replicate the following article with my dataset :
https://rpubs.com/phle/r_tutorial_panel_data_analysis
reg_spé_amb <- read.csv(file = "C:/Users/c/Downloads/reg_spe_amb.csv"...
0
votes
1
answer
26
views
Other keys for error messages in Django model
When you want to set error messages in Django model field use:
class UserCreationForm(forms.ModelForm):
password1 = forms.CharField(
label='password',
widget=forms.PasswordInput(...
0
votes
0
answers
17
views
How to retrieve source code of a model saved with tf.keras.models.save_model()?
I saved a trained model with tf.keras.models.save_model(MyM); it produced a folder with the contents expected. When I retrieve it, using tf.keras.models.load_model(MyM), everything works, except I can’...
-1
votes
0
answers
16
views
Questions about financial sanctions
The Eurace@Unibi model provides a representation of a closed macroeconomic model with a spatial structure. The main objective is to provide a micro-founded macroeconomic model that can be used as a ...
0
votes
0
answers
13
views
the model file is available. It does not connect to the database
It does not connect with the database since there is no issue with the route. The model file is available. The course has a Student *student as a data member in its body. Why does it not connect with ...
0
votes
0
answers
15
views
Why does it say that I cannot connect with MongoDB?
It does not connect with the database since there is no issue with the route. The model file is available. The course has a C *course as a data member in its body. Why does it not connect with the ...
0
votes
0
answers
16
views
Unknown image file format. One of JPEG, PNG, GIF, BMP required. [[{{node DecodeJpeg}}]] [Op:IteratorGetNext]
heres the code:
encode_train = sorted(set(img_name_vector))
image_dataset = tf.data.Dataset.from_tensor_slices(encode_train)
image_dataset = image_dataset.map(load_image, num_parallel_calls=tf.data....
0
votes
1
answer
28
views
Unable to establish relationship for two fact tables with multiple many-to-many dimensions in Excel Data Model
I have 3 tables (FACT1, FACT2, DIM1, DIM2)
FACT1:
Code Month Value
058 1 500
059 1 600
061 1 700
058 2 1000
059 2 1000
061 2 1000
FACT2:
Service Month Status Value
058-buy 1 OK 700
059-purchase 1 ...
0
votes
0
answers
32
views
Can't pass null for argument 'pathString' in child() error
ModelOrderUser.java
package my.anupamroy.smartcanteenapp.models;
public class ModelOrderUser {
String orderId,orderTime,orderStatus,orderCost,orderBy,orderTo;
public ModelOrderUser(){
}
...
-2
votes
0
answers
15
views
Which model to apply? [closed]
I am very new to this subject, but I am planning to add artificial intelligence in the project we are conducting. Although I have done enough research, I do not know which algorithm I should use. I ...
0
votes
0
answers
20
views
How to configure SQLAlchemy relationships with more than one relationship column? [duplicate]
I am trying to create SQLAlchemy models where one User owns "projects", and is also the author of "posts". Essentially, each post has a user, and each project has a user. And a ...
0
votes
0
answers
11
views
how recommend top movies for specific user in lightgcn model
Hello guys I build recommender system using Microsoft recommender I used Lightgcn model run correctly but cannot make recommend for specific user (depending on id) and get top k items. How make this?
...
0
votes
1
answer
25
views
Swift - How do I add a new object to an array inside another object that has a grouping field
I have an array of events of type.
struct Event { var id: UUID, var title: String, var date: Date }
this array is inside another object with an occurrence title
struct Category { var occurs: String, ...
-1
votes
0
answers
23
views
get a foreach from controller to the model
I have a foreach loop on my controller that just goes the articles throw and returns the categories of that articles in a form categories.
I wonder if I can do just that on the model?
$articles = ...
0
votes
0
answers
27
views
ASP.NET issues finding the id of a row after cheking if a value on 2 columns of the same table match
I want to get the datacorrespondeID if the value on MesObjetivo column is the same on currentMonth, and the value on AnoObjetivo column is the same on currentYear (the columns are on the same table ...
0
votes
1
answer
34
views
Could not find matching function to call loaded model
I trained a deep neural network using a custom object and was able to successfully train it however when I saved and try to reload the model for retraining, I got the subject of the post as an error.
...
0
votes
0
answers
12
views
Getting Deprecation Warning in Qlib demo "analyze graph" part
As the title stated, while I run the "analyze graph" part of the Qlib demo, it output
sitepackages/plotly/graph_objs/__init__.py:288: DeprecationWarning:
distutils Version classes are ...
0
votes
0
answers
27
views
MVC - Pass variable to multiple classes?
From my home page, I'm capturing the user input for "server" and passing it to the "Connect" class in my Controller. However, I need to be able to read that value on subsequent ...
0
votes
1
answer
14
views
csharp(CS1660) | "Cannot convert lambda expression to type 'bool' because it is not a delegate type" with "HasMany Method"
so I want to create the relationships between my Model classes (Booking and Person). I found a tutorial for that here.
I need the HasMany - WithMany Methods. When I try HasOne everything works fine. ...
0
votes
0
answers
23
views
Reverse accessor clasher with Django [duplicate]
First of all, this is not duplicate question. I saw solution for such question, but it did not work for me. Please assist.
I have such model in app:
class Company(models.Model):
owner = models....
-1
votes
1
answer
39
views
How to get values from model that contains a list in Java SpringBoot
i have a model that is for orders and also as a property, this one contains a list of products.
Order model contains (orderId, customerId, list products)
Products model contains (productid, ...
0
votes
0
answers
14
views
How to forecast an smooth model and get data points
I have build an ss model (smoothing spline package npreg).
The dataframe (df):
Data IP4 N1
1 2020-10-05 105000 1610000
2 2020-10-13 1220000 7110000
3 2020-10-19 266000 5530000
4 ...
0
votes
0
answers
9
views
Is my Entity Relationship Diagram meet the student teacher class relationship?
I basically want to show in the model a relationship in a school
Teacher can teach one or many subjects
Teacher can teach one or many class
Student can attend one or many subjects
Student can have one ...
-3
votes
0
answers
18
views
How to get the current url into django model
I'm very new onto Django world and I want to get the current URL from the save instruction and I don't have an idea of how to do that.