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 3285270
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:14:54+00:00 2026-05-17T20:14:54+00:00

I am attempting to train a neural network for a system that can be

  • 0

I am attempting to train a neural network for a system that can be thought of as a macro-level postal network. My inputs are two locations (one of the 50 US states) along with 1 to 3 other variables, and I want a numeric result out.

My first inclination was to represent the states as a numeric value from 0-49 and then then have a network with only 3 or so inputs. What I’ve found, however, is that my training never converges on a useful value. I am assuming that this is because the values for the states are wholly arbitrary – a value of 39 for MA has no relation to a value of 38 for CA, especially when 37 represents a jump back to CT.

Is there a better way for me to do this? Should I be creating a network with over 100 inputs, representing boolean values for origin and destination states?

  • 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-17T20:14:54+00:00Added an answer on May 17, 2026 at 8:14 pm

    I think that your intuition about the difficulty of representing different states as consecutive integers is correct — that representation compresses a lot of information into each input. That means that your network might have to learn a lot about how to decode that information into facts that are actually useful in solving your problem.

    One state per input, with boolean inputs, could help. It would make it easier for the network to figure out which two states you’re talking about. Of course, that approach doesn’t necessarily make it easy for the network to learn useful facts like which states are adjacent to eachother.

    It might be useful to try to determine if there are any kinds of information out there that are both easy for you to provide and that also might make learning easier. For example, if the physical layout of the states is important to solving your problem (i.e. CT is adjacent to NY, which is adjacent to PA) then perhaps you could break the country into regions (e.g. northwest, southeast, midwest) and provide boolean inputs for each region.

    Feeding a few input schemes like that into a single network could allow you to specify a single state using a (potentially) more useful representation: instead of saying “it’s state #39”, you could say (for example) “it’s the northernmost state that touches more than five neighboring states in the eastern region“.

    If the network finds it useful to determine if two states are near eachother, this kind of representation might make learning go a bit faster — the network could get a rough idea if two states are close by simply comparing the two “region” inputs for the states. Checking whether two region inputs are equal is a lot easier than memorizing the fact that state #39 is near states #38, #21, #7, and #42.

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

Sidebar

Related Questions

Attempting to print out a list of values from 2 different variables that are
I am working on a turn-based-game AI using a neural-network technique known as NEAT
I am attempting to troubleshoot an intermittent failure that appears to be related to
I'm attempting to make a classifier that chooses a rating (1-5) for a item
Im attempting to add voteup/votedown to one of my sites, however Im having a
When attempting to write/read cookies that have brackets in the name, it seems like
I'm attempting to force a download of an image that is in a directory
I'm attempting to implement a 'Requirements' type system into a program. It seemed pretty
Attempting to insert an escape character into a table results in a warning. For
Attempting to deploy a MOSS solution to a UAT server from dev server for

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.