21,342 questions
2
votes
1
answer
57
views
How do you move the function definition for the ->when() function in Laravel Eloquent Models?
I'm building a way to organize Items based on different requests:
$items = Item::query()
->where("type", $itemType)
->when($mode, function (Builder $query, $mode) {
...
-3
votes
1
answer
84
views
Converting from Java model to JPA
I have implemented a class User that represents a User (so far either a Student or a Teacher). What they have in common is that they both have IDs, and some information about the user (this is stored ...
1
vote
1
answer
39
views
How can I automatically add user's info to a model in Django?
I have a status and user apps in my project and all the statuses are obviously created by particular users. I want to keep info about statuses creators (id) in my db, but I don't know how to add it ...
1
vote
0
answers
101
views
tokenizer error: RuntimeError: The size of tensor a (4) must match the size of tensor b (8) at non-singleton dimension 0
When fine tuning a model, using the HuggingFace inference hub, the error below was encountered:
The tokenizer has new PAD/BOS/EOS tokens that differ from the model config and generation config. The ...
0
votes
0
answers
68
views
Issue's with importing the module pmdarima
I am trying to use the 'pmdarima' module, but I am unable to do so. I have even started using older versions of Python, but then I get a new error saying this: ValueError: numpy.dtype size changed, ...
0
votes
2
answers
38
views
How do I solve the lack of excel sheets creation in GAMS?
I use GAMS with gtree to get an output file of my model, however, one excel sheet is created while the other is not created.
This is my output code;
$libinclude xldump Water_balance_summary Output\...
0
votes
0
answers
35
views
How to dynamically load multiple TensorFlow Lite models in a Flutter app instead of bundling them?
I am building a Flutter app where I have to execute three separate TensorFlow Lite models on-device:
An embedding model
An action video detection model
A DistilGPT2 RAG model
Currently, I bundle all ...
0
votes
0
answers
52
views
Codeigniter 3... Undefined Property $Ngetest
Models: Ngetest.phpp
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Ngetest extends CI_Model
{
public function showEcho()
{
return "naisu";
...
0
votes
0
answers
94
views
How to handle very long prompts in language models, especially for complex business scenarios?
I'm working on a complex business scenario that requires me to craft detailed prompts for a model to process. The challenge I'm facing is that these prompts are extremely long, and due to certain ...
0
votes
1
answer
41
views
Results of Questionnaire to be downloaded as a spreadsheet
So i have this Model namely Questionnaire in models.py file of a Django project
class Questionnaire(models.Model):
title = models.CharField(max_length=200)
description = models.TextField(blank=...
0
votes
0
answers
27
views
How do I get the typed raw attributes of a Sequelize model that's a property of another model that is optional?
I have a Sequelize model that has a property that is also a model. In this case, Category has a property ParentCategory that is an optional model of Category. When I get the "non model" ...
0
votes
0
answers
58
views
How to train tensorFlow AI model for Android in .task format
I am trying to retrain MediaPipe Gusture Recognition model with new dataset. But I am not able to install MediaPipe Model Maker and tflite-support libraries in any of work environments like colab, my ...
0
votes
0
answers
115
views
I am getting sporadic crashes since updating Swift ModelContainer
I have some models in my app:
[SDPlanBrief.self, SDAirport.self, SDChart.self, SDIndividualRunwayAirport.self, SDLocationBrief.self]
SDLocationBrief has a @Relationship with SDChart
When I went live ...
0
votes
0
answers
20
views
Validation Accuracy stuck between 0.5-0.6
I am currently working on a custom VGG model for Breast Cancer Classification using mammography images. It has excellent accuracy for training images but the validation accuracy is stuck at 0.5-0.6. ...
0
votes
2
answers
59
views
MODEL clause in Oracle not returning correct data
I have a Table "TABLE1" with the below sample data:
ROW_NO
UNIQUEIDENTIFIER
EFFECTIVEDATE
ACTIVITYID
AMT
CALCAMT
1
AAA
5/10/2020
100
100
0
2
AAA
6/10/2020
100
20
0
3
AAA
8/17/2020
111
50
0
1
...