2,039 questions
Advice
0
votes
1
replies
83
views
Regression analysis
How should I handle a mass-point in the dependent variable when running OLS regression in R?
I’m working with a a household expenditure dataset (Living Costs 2019) where the dependent variable is the ...
0
votes
2
answers
86
views
Control levels the marginaleffects library uses when stratifying a numeric variable
I'm trying to use the marginaleffects library in R to get the estimates of a bunch of interaction effects from a bunch of different models. When I pass it an interaction that has a continuous ...
Best practices
0
votes
0
replies
96
views
How to physical, logical model your unstructured data
If I have data lake.. which have a lot of files and data.. structured and un structured .. is it the correct place , or what is the best practice to create the physical, logical model of my data.. ...
0
votes
0
answers
50
views
Coarsening the resolution of a xarray dataset
Very new to python! I am trying to model bottom water temperatures over time and need to reduce the resolution of my model from 1/20º to 1º. My ultimate goal is to map this and select specific grid ...
1
vote
1
answer
78
views
Why does my Kaggle cloud notebook give cuda init error: UNKNOWN ERROR (303)?
I am running all of this on a Kaggle cloud notebook (so it is a cloud environment) but I am not confident that it is configured correctly because I'm getting a CUDA initialization error.
The answer at ...
1
vote
1
answer
77
views
How do I find the closest lon, lat points in a spatial data frame that have non-NA values?
I have two data frames (in R), one with some environmental data and one with the occurrences of some species. I want to find the closest points (lon,lat) of the environmental data frame WHICH HAS A ...
0
votes
1
answer
83
views
How to create a line plot with segments of different colors in Matplotlib?
I am trying to use Matplotlib to create a complex geometric pattern that looks like the following image.
My current approach works by "faking" the curved, clipped shapes. I first draw six ...
0
votes
1
answer
25
views
Issue facing in the running Hydroblocks model
I am trying to run Hydroblocks model, for Kaledhon region, and i make sure that, all input data has properly set. But i am facing problems in pre-processing step steps itself. am trying again and ...
0
votes
0
answers
26
views
looping over sub-elements of an object in it's activity diagram [duplicate]
the following diagram depicts activities done by the vessel object in when in scheduled voyage time frame.
each vessel has shipments, each time its docked checks for all shipments, if 1 reaches ...
3
votes
2
answers
66
views
Are these UML state diagrams valid even if "vessel" is not a strict substate of "voyage" or "shipment"?
I draftet UML state diagrams to represent the lifecycle of voyages, shipments, and vessels in a maritime logistics system. Before finalizing the model, I want to make sure it's valid according to UML ...
1
vote
0
answers
49
views
One-Step Ahead Forecasting with TensorFlow Structural Time Series
I have the following situation: I’m given a univariate time-series dataset y that I wish to model using feature variables X, which are provided alongside y. Naturally, my instinct is to split the data ...
2
votes
1
answer
82
views
Modeling Asynchronous Interactions in shipment Lifecycle
I'm modeling shipment creation sequence diagram.
User creates shipment request -> system checks container/voyage candidates (reference to generate candidates diagram).
(1)If candidates exist -> ...
-1
votes
1
answer
87
views
More sweeps vs shorter timesteps [closed]
Question
Is it better to use larger timesteps that necessitate more sweeps, or shorter timesteps that permit fewer sweeps? I define 'better' as meaning a better 'accuracy-to-computation' ratio.
...
1
vote
1
answer
88
views
Heat equation units in FiPy
Question
Am I correct in using volumetric properties when simulating the heat diffusion equation with FiPy?
Context
I am solving the transient heat diffusion equation with an explicit source term.
...
0
votes
0
answers
73
views
Extracting WAIC using rjags::jags.samples() from single chain of bayesian model run in parallel with JagsUI
I am using JagsUI to run many single and multi-predictor models, using the autojags() function to run them until convergence. I would like to do model selection using WAIC, rather than DIC. The JagsUI ...
0
votes
0
answers
24
views
Keep getting pickling error when using neurolib (model-fitting)
Main error:
PicklingError:
Can't pickle <class 'neurolib.utils.parameterSpace.ParameterSpace'>:
it's not the same object as neurolib.utils.parameterSpace.ParameterSpace
Full error:
Python ...
0
votes
0
answers
17
views
Method to dynamically model temperature in an enclosed space?
I am trying to make a model that dynamically predicts the temperature and humidity at any point in my enclosed room for a hydroponics project. I have placed temp and humidity sensors around the room ...
0
votes
0
answers
27
views
Missmatched Pole-Zero Plots Between Simulink and XFLR5
I'm currently trying to create a 6DOF fixed wing uav model inside simulink with this playlist. I created a plane model inside xflr5 and followed the steps inside the video for transferring to the ...
0
votes
0
answers
101
views
Error when restoring the idToken - MicroStrategy Modeling service REST API
I am encountering a JWT validation error while testing API for MSTR Modeling service to get Security filter definition: '/MicroStrategyLibrary/api/model/securityFilters/{SF_ID}'
Error Response:
{
...
3
votes
1
answer
51
views
Python GEKKO - Non-zero Degrees of Freedom due to if2/if3
Currently I am building an economic model in Python GEKKO:
m = GEKKO()
m.time = np.arange(0, 200, 1)
#define the variables
consumption = m.Var()
tax = m.Var()
...
1
vote
0
answers
150
views
How fix error in Mathematica "NDSolve::ndsz: At t == ... step size is effectively zero; singularity or stiff system suspected" when using Manipulate?
I am trying to solve a nonlinear system of differential equations in Wolfram Mathematica using NDSolve and visualize the solution with Manipulate. However, I encounter the following error when running ...
1
vote
1
answer
132
views
Error Downloading Chelsa Climate Data with pastclim
I attempted to download the current chelsa 2.1 climate variables using pastclim. However, I keep getting the error:
Error: buildvrt: options error.
terra, gdal, and pastclim are up-to-date. Is this ...
1
vote
1
answer
45
views
Is there any way to exclude the previous patch a turtle was on from neighborhood?
I want my turtles (builders) to build roads which connect to other roads, so they have to die when they encounter a grey patch in any of their four non-diagonal neighbors except the patch they were ...
0
votes
1
answer
78
views
Excel: Repeat Sumifs based on the length of another column
I have created a dynamically updated table where the legnth of criteria in column AL changes. My problem is that the formula in column AN only extends as far as I have it pasted. Is there a way to get ...
0
votes
1
answer
28
views
Database modelling for 2 many-to-many relations that have their own one to many relation
With reference to the attachment, data has a many to many relationship with both entities. What would be the right thing to do?
To add more context, each data entry can have 0, 1, 2, ..., N categories,...
0
votes
0
answers
13
views
CO2 inverse modeling accuracy
I used an ERA5 database and data from a weather ground station.
I want to estimate CO2 emission rates from known sources using a combination of weather station data, mobile CO2 sensors and databases ...
0
votes
0
answers
64
views
How to find optimal split of train and test to return the minimum RMSE for Boston housing data set without looping
I'm working to minimize the RMSE for the Boston housing data set. This is a very basic result:
library(Metrics)
df <- MASS::Boston
train <- df[1:400, ]
test <- df[401:506, ]
Boston_lm <- ...
0
votes
0
answers
50
views
Can invariants span across multiple aggregate roots?
I've got a bit of a theoretical question surrounding DDD and aggregates. It really boils down to this: Yes, we all know that within an aggregate everything must stay consistent. But does that mean ...
0
votes
0
answers
44
views
Modeling many to many invariants in DDD
I'm currently learning DDD and am having trouble modeling invariants in a many to many relationship
Lets suppose I am attempting to model a school scheduling program, and I have the following ...
0
votes
1
answer
134
views
Using multiple repositories in application layer DDD
I'm learning about DDD and am attempting to model a basic interaction between a user and a shopping cart, and am wondering if the following code is directly aligned with DDD principles, or if there is ...
2
votes
0
answers
61
views
Evaluate and Save a DNN Linear Combined Classifier Model in Tensorflow
I'm using tensorflow estimator for my model and it works for training and evaluation part (Code snippet given below). While the accuracy being displayed from the results are 93%, the precision and ...
0
votes
1
answer
67
views
how to make slack variables with only single index each but each comprises more than one element
I'm reproducing this paper and confused with the notation.
There, z_{i} is a slack variable with single index. However, the definition of it: z_{i}: ith row vector in an m × N_{R} matrix of positive ...
0
votes
0
answers
34
views
Dimension/Translation tables aggregated inside only one table
In DWH system one has a lot of dimension (lookup) tables (like statuses, types, categories, etc.) These tables are almost always very small but in one regular DWH there could be hundreds of them. Many ...
0
votes
0
answers
55
views
SARIMAX for demand forecasting
The code below runs SARIMAX to predict product demand by customer. First, the product types by customer are considered as a single combination, and then STL decomposition is performed on each ...
0
votes
1
answer
41
views
Resolving Several Errors for a Line of Code in GAMS software
I have several errors in the following line:
e3_d(b).. sum( (t)$(ord(t) >= 1) and (ord(t) <= t-N_chp_on_max+N_chp_on_max), alpha(b, t) ) =l= N_chp_on_max;
Two errors (',' expected) and (Unknown ...
1
vote
1
answer
62
views
How can I merge agents into a different type agent using multiagents?
Starting from the example Continuous space social distancing, I'm trying to create a model that involves merging each pair of nearby agents into an agent of a different type, with other properties.
...
1
vote
0
answers
24
views
Combining a DNA and ctma molecule in Amber MD
I am new to Computational Chemistry. I am working on a project that requires that I attach a bunch of ctma molecules to a dna molecule in Amber xleap. Is there a command in Amber xleap that can help ...
0
votes
1
answer
148
views
glmer and 'hessian is numerically singular'
I have following dataframe:
> test_df
sample pers expl resp
1 1 1 a 1
2 2 2 a 1
3 3 3 a 1
4 4 4 a 1
5 5 5 a 1
6 6 ...
-1
votes
1
answer
60
views
Getting 'Element not defined' Error for ExtGraphNodes in OPL model
I'm working on an optimization problem using IBM's OPL (Optimization Programming Language). I have defined a set called ExtGraphNodes in my model file, but when I try to use it in my data file, I ...
2
votes
1
answer
91
views
Modelling objects and changes to object which evolve over time in a SQL database
I'm, wondering if there is
at least a name
and/or a generic solution
for the following problem:
I have an object that has some properties.
{
"name": "Foo",
"colour&...
0
votes
1
answer
137
views
Building a Fluid Flow Simulation App: Seeking Advice on Pipe Network Architecture
I’m working on creating a web application to simulate piping systems, where you can place pipes precisely and track the fluid flow theoretically (using thermodynamic calculations), including pressure ...
0
votes
1
answer
177
views
Dredged many global models in R (binomial GLMs), how can I compare results across models?
I'm conducting data exploration on lots of parameters (including multiple ways to summarize a parameter). I'm trying to prioritize variables for prediction onto test data. I'd like to use dredge to ...
1
vote
1
answer
53
views
Why is my model not converging with ode45 solver in Matlab?
I am trying to simulate an electronical device that can be modeled by a mass-spring-damper system with an additional non-linear force. The equation at the equilibrium for the system is the following :
...
0
votes
1
answer
73
views
How do I change my SUMO option --collision.action from the default value "teleport" to "none"?
I need to set SUMO (Simulation of Urban Mobility) so that no action is taken when vehicle collisions occur. To do this, I need to change the --collision.action option, which by default has value "...
2
votes
1
answer
74
views
What is the problem with my R code for solving and plotting a coupled system of ODE's?
I'm reasonably new to R and have this system of ODEs
\frac{dS}{dT} = -\beta(1-\mu)S(t)\frac{I(t))}{1-D(t))}
\frac{dI}{dT} = -\beta(1-\mu)S(t)\frac{I(t))}{1-D(t))}-\delta I(t))-\phi I(t))
\frac{dR}{dT}=...
0
votes
1
answer
83
views
Modelling an arbitrary (but fixed) number of independent planning varibales in Timefold?
I'm assigning rooms to lessons in my schedule generator. My current model looks like this:
@PlanningEntity
class Lesson {
...
@PlanningVariable(allowsUnassigned = true)
Room room;
Set&...
1
vote
0
answers
65
views
How to over come the division by zero error when implementing Perez Model to find POA radiance when DHI and DNI are zero?
I am currently working on calculating the total irradiance falling on walls of different orientations (North,South,East,West) in Toronto. For this I have a weather data file that consists of DHI, DNI ...
0
votes
1
answer
96
views
Fluid calculation in OpenModelica
I am trying to build my library for hydraulic calculations. I have a problem with the pipe model.
This is what my pipe model looks like:
model pipe_v0
import Modelica.Units.SI;
parameter SI.Area ...
1
vote
1
answer
291
views
Repeating external entities in DFD diagram
I am making a DFD diagram for software that is going to run on a PLC to control a testing setup.In this setup i have 7 load cells and 7 hydraulic valves.
I am wondering if i need to show all 7 of them ...
1
vote
1
answer
74
views
Incorporating time step dependent rate/parameter in a metapopulation model
I would like to incoparate a rate that changes with times in a metapopulation model using code by B. Raynor. The code was originally published at https://rpubs.com/bhraynor/MetapopulationModel
In the ...