|
What is the difference between causal models and directed graphical models?
or:
What is the difference between causal relationships and directed probabilistic relationships?
or, even better:
What would you put in the interface of a DirectedProbabilisticModel...
Started by Neil G on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A casual model is a way of assigning dependencies perform estimation using something different....
If I understand this post correctly, casual models and directed graphical models (Bayesian networks) aim at different stages of the workflow.
|
|
Would it be incorrect to make all my View Models / Presentation Models static classes so that if any other View Presenter wanted to change a view model other than its own it could easily aquire a reference to it?
If this is the wrong approach how would...
Started by David on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Easily accessible but will create a new model object for each class that wants ViewModels/Presentaion Models....
Will find it extremely difficult to test all the classes that consume your static models as you won't using a Factory pattern.
|
|
I've read some MVC advice in the past regarding models stating that you should not reuse the same model objects for the domain and the view; but I haven't been able to find anyone willing to discuss why this is bad.
It is my opinion that creating two ...
Started by Erik Forbes on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If your View Model IS your domain model then your domain ....
I guess the idea is that your domain models might extend to other implementations, not just your MVC application and that would break the seperations of concerns principle.
|
Ask your Facebook Friends
|
Is there a way to have models for each module? I have 3 modules, one is a "contacts" module. I created a model for it in modules/contacts/models/Codes.php Codes Controller
class Contacts_CodesController extends Zend_Controller_Action { public function...
Started by EricP on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I found the problem use their own....
Without a problem.
models/ => Model DbTable/ => Model_DbTable plugins/ => Plugin
If you are using Zend is, In a contacts action I can call the models in the ez/models dir.
|
|
It used to be that within a CodeIgniter model you couldn't access another model. E.g
$this->load->model('bar'); $this->bar->something();
Would be invalid within the code of a model. Is this still valid or have they changed it?
Started by Click Upvote on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For instance....
Loaded and you can use it in any model):
/** * * Allow models to use other modelsI think it's generally better the write libraries that access the models and then include the libraries in your model if need be.
|
|
I read everywhere that business logic belongs in the models and not in controller but where is the limit? I am toying with a personnal accounting application.
Account Entry Operation
When creating an operation it is only valid if the corresponding entries...
Started by Jean on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The advantage of the separate utility class is that it keeps each model....
In your case there are 2 kinds model, but has business logic that crosses model boundaries.
Into model operations and reponses while also doing formatting.
|
|
I have several Models and want to return a queryset of all the Models belonging to a User, I'm wondering if its possible to return one Queryset from multiple Models?
Started by Rasiel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Do you need a queryset a list, a chained iterator (itertools) or ... .
Your models must contain relationship fields (ForeigKey and ManyToManyField), with related_name a single queryset of all the objects belonging to the user from each model.
|
|
Something I've been noticing a lot lately with wow, which bothers me (though not to say I don't understand why they do it) is how the design team seem to follow a code of reusing old skeletons and reskinning them for something else.
Jinyu, Yaunka, Wind...
Started by Trassk on
, 20 posts
by 16 people.
Answer Snippets (Read the full thread at mmo-champion):
With a new model they either waste time new looking character models and animations....
Many animations have thousands of frames.
Model, the actual shape some sushi.
An age how many folks still get Skins, Models and Skeletons confused.
|
|
I have a form which needs to populate 2 models. Normally I use a ModelBinderAttribute on the forms post action i.e.
[Authorize] [AcceptVerbs("POST")] public ActionResult Add([GigBinderAttribute]Gig gig, FormCollection formCollection) { ///Do stuff }
In...
Started by ListenToRick on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For example if your Item model....
You can pass through the model, the model you wish to bind, the prefix of the items you wish to bind to that model and the form.
The UpdateModel or TryUpdateModel method can be used to do this .
|
|
What I'd like to do is join one model to another using two intermediary models in between..Here's the abstraction:
Country has_many Companies Company has_many Buildings, Company belongs_to Country Building has_many Rooms, Building belongs_to Company Room...
Started by Dan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
On the Building and Company models
Try using nested has many through.
|