How to code an algorithm to generate a random but valid train track layout?

I am wondering if I have quantity C of curved tracks and quantity S of straight tracks, how I could write a computer program to design a “random” layout using all of those tracks, such that the following rules are satisfied:

1) The tracks, when all connected, form a closed (continuous) loop for the train to go around.

2) Ramps, bending of tracks, bumping of tracks, crossing of tracks are all not allowed.

So would the computer program have to create a geometric model and remember the exact positions of each track or is there some simpler way to code this? I want to be able to “push a button” and the computer “spits out” a valid “new” layout for me.

Do I need to give the exact measurements of the 2 types of tracks? If so, I can provide those.

I have some coding skills but I need to know an algorithm first before I can code something meaningful (other than just testing a few parts of a candidate algorithm)

How train using the absolute partial derivative of the error function?

I have to do this: Two multi-layer perceptron (NN) were calibrated in the context of regression analyses, one to estimate the diameter (d) and another to estimate the accumulated volume (Vac) from the base up to a given height (h). Both contained two hidden layers: 25 neurons in the first and 10 neurons in the second, all containing the logistic as the activation function. The NN training was oriented to minimize the sum of squared errors through resilient backpropagation algorithm with weight backtracking. For each iteration of the cross-validation the NN was initialized 50 times, and the training ended when the absolute partial derivative of the error function, with respect to the weights, was smaller than 0.01

Im triying to do something but is apparently bad

while True: from sklearn.model_selection import train_test_split xvac_train, Xvac_test, yvac_train, yvac_test = train_test_split(xvac, yvac) mlr=MLPRegressor(solver=’lbfgs’, activation=’logistic’,alpha=1e-5,hidden_layer_sizes=(20,10),random_state=1) mlr.fit(xvac_train,yvac_train) print(mlr.score(xvac_train,yvac_train)) if mlr.score(xvac_train,yvac_train) > 0.99: break

please help

Is it possible to hire someone to train you in skills or armor/weapon proficiencies?

As the title suggests, I am wondering if it is actually within the rules of the game for your character to hire someone for skill/armor/weapon training/proficiency. Is this possible, or can you only get training/proficiency through feats upon leveling up?

I am wondering about this because I have a strict plan for my feats that require training in acrobatics, but I will be using all 18 feats for other things.

For a UK rail delay, which train company do you claim compensation from?

For those who don’t know, the UK rail network was largely privatised in the 1990s. Whether or not rail privatisation is a good thing is still very much up for debate, but even most pro-privatisation people feel the way it was done wasn’t the right way! One upshot is that most non-trivial journeys will involve travel on trains operated by more than one train company.

Let’s consider a hypothetical journey, A to D with a change of trains at C. The A-C journey is to be operated by TrainCoA, C-D by TrainCoB. Unfortunately, the A-C train is cancelled, so you end up getting a later train A-B, another B-C, and then a later train than you’d planned C-D. Oh, and then the C-D train you eventually caught was very late too. Everything was bought on a single ticket.

In this situation, which train company do claim compensation from? TrainCoA, as their initial cancellation was your first delay? TrainCoB, as their C-D delay was the largest delay on your journey? TrainCoC, who ran the A-B journey that you got instead, as they were the first company who’s trains you managed to take? Or can you take advantage of the privatised nature of the system, review the compensation policies of all three train operating companies, and apply for compensation from whichever company has the most generous compensation for your sequence of delays? (Many of the companies have different minimum delays before compensation is due, and different exclusions on what their delay compensation covers….)

Tunnel or Bridge to Get to Windsor Train Station

Two other travelers and I are catching the 5:45 train from Windsor to Toronto this Friday. We are coming from Detroit and are wondering whether it is better to plan on taking the tunnel bus over or have a fourth person drive us over the bridge and drop us off at the station.

I’m worried about how much time to give for crossing the boarder and getting to the train station since it’s going to be during rush hour. In addition, I’m not sure how much extra effort it is to go from the tunnel station to the train station. Similarly, I am not sure if it is not suspicious to have a friend say that they’re dropping three people off at the train station and then coming back at the boarder.

My questions are: 1. How much time does it take to cross during peak rush-hour for either method 2. How difficult is it to have a fourth person drive to the station and drop us off and how long does it take 3. How difficult is it to get from the tunnel station in Windsor to the train station and how long does it take

Is it possible to buy a train ticket CDG airport to Paris truly online?

Next week, I am landing in Paris CDG airport and an hour later I have to be at Gare du Nord. Therefore, I wanted to buy a ticket in advance to get from the airport to Gare du Nord as quickly as possible without having to buy a ticket first.

Here is what I did:

  1. Googled and found this https://www.ratp.fr/en/titres-et-tarifs/airport-tickets where it says that the ticket with RER B costs 10,30€.

  2. Followed the link to Book online with Parisinfo where I chose “RER B One way Train Ticket Charles de Gaulle airport – Paris” and clicked on “Add to basket”. So far so good.

  3. How it wants me to choose where I would like my order delivered to:

    • Collection point (Free)
    • Home delivery (from 14,50 €)
    • Delivery at your hotel in Paris (12 €)

So clearly, this particular path ends up with them wanting to deliver the ticket physically.

Is there a way to buy this ticket truly online? By “truly online” I mean that I don’t just pay online but the ticket actually gets delivered online, with a QR code to verify its authenticity if needed before or on the train or something like that.

Can solving reCAPTCHA help Google train its Artificial intelligence

I have come across this on various forums that Google uses our response while solving reCAPTCHA to train its AI. For example some say that spotting stop signs and cars in reCAPTCHA trains Google’s self driving AI. I’m not sure of the authenticity of these claims, but I’m doubtful whether it is even theoretically possible to train an AI this way.

The reCAPTCHA challenges user to spot or identify a certain thing, and on answering it incorrectly it asks you to try again. This means that Google already has the knowledge of the correct answers to the challenge. It already knows which pics are stop signs and which are cars. Isn’t it enough to train an AI? Why is my input to the puzzle needed to train the AI?

Can solving reCAPTCHA help Google train its Artificial intelligence

I have come across this on various forums that Google uses our response while solving reCAPTCHA to train its AI. For example some say that spotting stop signs and cars in reCAPTCHA trains Google’s self driving AI. I’m not sure of the authenticity of these claims, but I’m doubtful whether it is even theoretically possible to train an AI this way.

The reCAPTCHA challenges user to spot or identify a certain thing, and on answering it incorrectly it asks you to try again. This means that Google already has the knowledge of the correct answers to the challenge. It already knows which pics are stop signs and which are cars. Isn’t it enough to train an AI? Why is my input to the puzzle needed to train the AI?