Search found 71 matches

by jdtoellner
Sun Nov 27, 2016 5:02 pm
Forum: SMILE
Topic: Using SMILE with Visual Studio 2015 C++
Replies: 11
Views: 252087

Re: Using SMILE with Visual Studio 2015 C++

From here you'll navigate to the SMILE folder you unzipped.
Visual Studio Include Directories Folder Selector 3.JPG
Visual Studio Include Directories Folder Selector 3.JPG (57.95 KiB) Viewed 252082 times
Select the SMILE folder you created from the ZIP file.
Visual Studio Select SMILE Folder.JPG
Visual Studio Select SMILE Folder.JPG (48.58 KiB) Viewed 252082 times
Click OK here.
Visual Studio Include Directories Folder Selector 4.JPG
Visual Studio Include Directories Folder Selector 4.JPG (34.59 KiB) Viewed 252082 times
by jdtoellner
Sun Nov 27, 2016 4:59 pm
Forum: SMILE
Topic: Using SMILE with Visual Studio 2015 C++
Replies: 11
Views: 252087

Re: Using SMILE with Visual Studio 2015 C++

Click on the field next to Include Directories and select <Edit...> . Visual Studio Include Directories.png Click on the Folder icon in this window. Visual Studio Include Directories Folder Selector.JPG Then click on the ellipses (...). Visual Studio Include Directories Folder Selector 2.JPG
by jdtoellner
Sun Nov 27, 2016 4:53 pm
Forum: SMILE
Topic: Using SMILE with Visual Studio 2015 C++
Replies: 11
Views: 252087

Re: Using SMILE with Visual Studio 2015 C++

In the Solution Explorer window right-click on SMILE Sample Application (or whatever you named your application). Visual Studio Solution Explorer.JPG Select Properties . Visual Studio Solution Explorer Properties.png On the properties page select VC++ Directories . Visual Studio Properties VC Direct...
by jdtoellner
Sun Nov 27, 2016 4:46 pm
Forum: SMILE
Topic: Using SMILE with Visual Studio 2015 C++
Replies: 11
Views: 252087

Using SMILE with Visual Studio 2015 C++

There are some hard to find configurations I had to do to get SMILE to work with Visual Studio C++. Here are the instructions I followed. First, download SMILE for Visual Studio 2015; the 64 bit version. Here's the download page: https://download.bayesfusion.com/files.html?category=Business#SMILE SM...
by jdtoellner
Sat Nov 26, 2016 7:33 pm
Forum: SMILE
Topic: Node Class
Replies: 4
Views: 5151

Re: Node Class

Thanks!!

You're my hero.
by jdtoellner
Fri Nov 25, 2016 8:32 pm
Forum: SMILE
Topic: Pointer to Number of Outcomes
Replies: 1
Views: 3513

Pointer to Number of Outcomes

Is there any way I can set up a pointer to the number of outcomes in a node rather than having to interrogate it with "GetNumberOfOutcomes"?

Code: Select all

numberOfOutcomes = = theNet.GetNode(nodeHandle)->Definition()->GetNumberOfOutcomes();
by jdtoellner
Fri Nov 25, 2016 8:24 pm
Forum: SMILE
Topic: Pointer to DSL_nodeInfo object
Replies: 1
Views: 3274

Pointer to DSL_nodeInfo object

I'm able to set up pointers to DSL_node and DSL_nodeDefinition objects. NODE_nodeClass { DSL_node * nodePtr; DSL_nodeDefinition * nodeDefinitionPtr; } // . . . code in non constructor method of NODE_nodeClass: nodePtr = theNet.GetNode(nodeHandle); nodeDefinitionPtr = theNet.GetNode(nodeHandle)->Defi...
by jdtoellner
Fri Nov 25, 2016 8:05 pm
Forum: SMILE
Topic: Node Class
Replies: 4
Views: 5151

Re: Node Class

Thanks for the reply; especially during a holiday! I did what you suggested and ran into another problem. This original code you suggested works: class NODE_nodeClass{ DSL_idArray nodeStates; int numberOfStates = 0; } ... // in a body of non-constructor method of NODE_nodeClass: DSL_idArray &out...
by jdtoellner
Thu Nov 24, 2016 6:12 pm
Forum: SMILE
Topic: Node Class
Replies: 4
Views: 5151

Node Class

You showed me this code in a previous post:             DSL_node *nodeDefinitionPtr= theNet.GetNode(nodeHandle);             DSL_nodeDefinition *nodeDefinitionPtr= parentNode->Definition();             DSL_Dmatrix &cpt= *nodeDefinitionPtr->GetMatrix(); It enables me to simplify this: theNet.GetN...
by jdtoellner
Fri Nov 18, 2016 7:34 pm
Forum: SMILE
Topic: int Ok(int aNode)
Replies: 1
Views: 3330

int Ok(int aNode)

This is the OK function for nodes:

Code: Select all

int nodeOK = theNet.Ok(nodeHandle);
Is this the OK function for submodels?

Code: Select all

int submodelOK = theNet.GetSubmodelHandler().Ok(submodelHandle);
by jdtoellner
Mon Nov 14, 2016 1:07 am
Forum: SMILE
Topic: SMILE Documentation Update
Replies: 1
Views: 3181

SMILE Documentation Update

When will you all be finished with updated SMILE documentation?
by jdtoellner
Fri Nov 11, 2016 7:55 pm
Forum: SMILE
Topic: Get Error Message
Replies: 1
Views: 3067

Get Error Message

I tried to get an error string with GetErrorMessage.

Code: Select all

DSL_errorStringHandler errorHandler;
cout << errorHandler.GetErrorMessage(-2) << endl;
It doesn't work.
by jdtoellner
Sun Nov 06, 2016 6:17 pm
Forum: SMILE
Topic: Parent State Names
Replies: 1
Views: 3899

Re: Parent State Names

I think I've figured this out. Get the parents with this code. DSL_intArray parentHandles = theNet.GetParents(nodeHandle); int numberOfParents = theNet.NumParents(nodeHandle); Then get the states with this code. for (int parentIdx = 0; parentIdx < numberOfParents; parentIdx++) { DSL_node *parentNode...
by jdtoellner
Fri Nov 04, 2016 11:37 pm
Forum: SMILE
Topic: Parent State Names
Replies: 1
Views: 3899

Parent State Names

In the other forum you provided the following code snippet that set probabilities (weights) for a Noisy Max node. // NoisyMaxDemo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "smile.h" int main() { DSL_network net; int ret = net.ReadF...
by jdtoellner
Sat Oct 29, 2016 4:38 pm
Forum: SMILE
Topic: Normalize & Compliment
Replies: 2
Views: 6257

Normalize & Compliment

Please post an example of the Normalize and Compliment functions for DSL_Dmatrix.