Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6566387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:12:40+00:00 2026-05-25T14:12:40+00:00

Namespace error cant find which one? using System; using System.Collections.Generic; using System.Linq; using System.Text;

  • 0

Namespace error cant find which one?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
 public void CreateNetwork() {
 try {
   Network net = new Network();

   // Creating node "Success" and setting/adding outcomes:
   net.AddNode(Network.NodeType.Cpt, "Success");
   net.SetOutcomeId("Success", 0, "Success");
   net.SetOutcomeId("Success", 1, "Failure");

   // Creating node "Forecast" and setting/adding outcomes:
   net.AddNode(Network.NodeType.Cpt, "Forecast");
   net.AddOutcome("Forecast", "Good");
   net.AddOutcome("Forecast", "Moderate");
   net.AddOutcome("Forecast", "Poor");
   net.DeleteOutcome("Forecast", 0);
   net.DeleteOutcome("Forecast", 0);

   // Adding an arc from "Success" to "Forecast":
   net.AddArc("Success", "Forecast");

   // Filling in the conditional distribution for node "Success". The 
   // probabilities are:
   // P("Success" = Success) = 0.2
   // P("Success" = Failure) = 0.8
   double[] aSuccessDef = {0.2, 0.8}; 
   net.SetNodeDefinition("Success", aSuccessDef);

   // Filling in the conditional distribution for node "Forecast". The 
   // probabilities are:
   // P("Forecast" = Good | "Success" = Success) = 0.4
   // P("Forecast" = Moderate | "Success" = Success) = 0.4
   // P("Forecast" = Poor | "Success" = Success) = 0.2
   // P("Forecast" = Good | "Success" = Failure) = 0.1
   // P("Forecast" = Moderate | "Success" = Failure) = 0.3
   // P("Forecast" = Poor | "Success" = Failure) = 0.6
   double[] aForecastDef = {0.4, 0.4, 0.2, 0.1, 0.3, 0.6}; 
   net.SetNodeDefinition("Forecast", aForecastDef);

   // Changing the nodes' spacial and visual attributes:
   net.SetNodePosition("Success", 20, 20, 100, 50);
   net.SetNodeBgColor("Success", Color.Tomato);
   net.SetNodeTextColor("Success", Color.White);
   net.SetNodeBorderColor("Success", Color.Black);
   net.SetNodeBorderWidth("Success", 2);
   net.SetNodePosition("Forecast", 30, 100, 90, 130);

   // Writting the network to a file:
   net.WriteFile("tutorial_a.xdsl");
 }
 catch (SmileException e) {
   Console.WriteLine(e.Message);
 }
}

Network, SmileException and color all have namespace errors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:12:40+00:00Added an answer on May 25, 2026 at 2:12 pm

    This is from Structural Modeling, Inference, and Learning Engine (SMILE), particularily SMILE.NET.

    See http://genie.sis.pitt.edu/wiki/JSMILE_and_Smile.NET

    … teach, not flame …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a namespace like: namespace MyApp.Providers { using System; using System.Collections.Generic; using
using namespace std; class A { public: A() {} ~A() {} map<int, string*>& getMap()
in the System.Linq namespace, we can now extend our IEnumerable's to have the Any()
This is my code: #include <algorithm> #include <vector> #include <string> using namespace std; class
I cant find the error in this piece of code could anyone please insight
the R and B gets error when using this logic, i cant seem to
I'm a junior in C# and I cant find the solution using search I
Assembly 1 namespace Foo { public class Foo { } } Assembly 2 using
After namespace , class , struct , enum , for , foreach , while
I place using namespace in a view code behind but i can't call any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.