I made a copy at the police station

Chapter 238 There is a bug in the program

Li wanted to be very comfortable during his time in the provincial department. Unlike in Jinghai City, where he was busy solving cases every day, he could also have some leisure and develop Xiaomu bit by bit.

After this period of busy work, Lin Feifei finally listed her studio.

When he was on vacation, he also took a look and found that it was already beginning to take shape.

Although the sparrow is small, it has all the essentials. Lin Feifei invested 200 million in the recording studio alone.

Adding up other miscellaneous expenses, the total investment in Fei Tongfanxiang Studio is about 400 million.

The registered capital is 500 million, leaving 100 million as operating costs and labor wages.

This money is almost all of Lin Feifei's belongings.

This time they all went in.

Don't look at her hesitation before, as if she was timid.

But once she made up her mind, she really showed the courage to risk everything.

Li Xiang also admired her for this.

"Is the money enough? How about I give you the more than 100 million first, and the decoration of the home can be slowed down."

Li Xiang didn't want to see how much pressure she was under, so he decided to use the more than 100 million she had given to support him to open a studio for her first.

"No, I have enough money now. Don't worry. If I don't have enough money, I will talk to you. You don't know, I took the money out of the stock market. During this time, the stock market has fallen a lot. This day, the China Securities Regulatory Commission If high-frequency trading is not abolished, the stock market will never even think about it.”

"High-frequency trading? What high-frequency trading?"

"High-frequency trading is to use computer models to buy low and sell high in the market to earn the price difference. This price change is extremely short-lived and ordinary people cannot grasp it, but computers can, so high-frequency trading was born. Even if you make a profit at once, The price difference is one penny, but for a computer that can trade tens of thousands of lots per second, it’s like a money printing press at home.”

The speaker does not intend, the listener intends.

Lin Feifei lamented the harm caused by high-frequency trading to the stock market. She lamented that she had escaped from the trap and used the money to renovate Li Xiang's house. If she still did not make up her mind to withdraw it, she would still lose money in just a few days. 10,000+.

But when Li Xiang heard the news, he immediately thought of Xiaomu.

Is it not illegal for police to speculate in stocks?
If you still want to avoid suspicion, there should be no problem in keeping Lin Feifei's account and using her account to trade stocks, right?
For a while, Li Xiang became interested in this way of making money.

As Lin Feifei said, high-frequency trading uses models to find extremely short-term price differences. This is the crudest model and can only earn some price differences.

However, according to Xiaomu's intelligence level, he can develop an intelligent model to analyze the data of each stock to determine which stock is favored by funds and follow the trend to buy. When the funds run away, his fund size is small. , can also run away in advance.

With the thought, this idea planted a seed in his heart and quickly took root and sprouted.

"Husband, husband, what are you thinking about? Why don't you respond when I talk to you?"

"Huh? Oh, it's nothing. By the way, show me your stock account."

Li Xiang was going to study what was going on with the stock on his own first, so he took Feifei's account over to take a look.

"What do you want to do? Let me tell you, you are not allowed to trade in the stock market. This stock trading is a trap for cutting leeks."

When Lin Feifei saw Li Xiang asking her for a stock account, she immediately became alert. She couldn't lead Li Xiang astray.

I don’t have much money now. If I fall into the sinkhole of the stock market again, it will be difficult to get out.

"I know, don't worry, I just want to see how you lose money. Besides, I want to play stocks, so I opened an account myself. Why do I need your account?"

Lin Feifei thought the same thing. If Li Xiang wanted to invest in the stock market, he could just open an account by himself. It was useless for him to have his own account, so he gave the account to him.

After returning home, Li Xiang used his off-duty time to start studying the stock market, the stock's K-line trend, the amount of changing hands, and various parameters.

But as he researched, Li wanted to discover one thing, and that was that it was useless to look at the data.

The only way for a stock's share price to rise is if there is an outflow of funds. When funds flow out, the share price will fall.

Looking at other parameters, there is no reference value.

As long as he makes a model that monitors the inflow of funds in real time and cooperates with Xiaomu's intelligent trading, he can completely harvest the main force's wool.

After having an idea, he began to modify Xiaomu, added a stock model, and then opened a virtual disk, and the stock market began to simulate operations.

On the first day, the 100 million simulated market lost 10%.

Li Xiang immediately started to find the cause. The cause of the problem was a loophole in the model, and he immediately repaired the loophole.

The next day, the simulation profit was 2%.

In the next few days, the model's losses and profits were not very stable. Li Xiang took a look and found that there was a problem with his parameter design.

But regarding adjusting parameters and solving this problem, there is someone more suitable than him.

That is Xiaomu.

Xiaomu made profits based on his own parameters, constantly adjusted them, and then recorded the profits. Finally, he found a parameter with relatively high profit probability and income, and finally completed the debugging of the model.

This credit must be attributed to Li Xiang's learning ability that he gradually completed.

"Let Xiaomu operate in the stock market for a month using simulated trading. Then we will see how Xiaomu's ability to operate his account has been over the past month."

Li wants to focus the computing power resources of his workstation on the stock market model, which is currently just enough.

Fortunately, Li Xiang did not conflict with it. When Xiaomu was trading stocks, he was working in the research institute and did not use a computer.

By the time he wanted to use the computer, the stock market was closed and the model was no longer needed.

The time when both parties use the computing power of the workbench is perfectly staggered, so that it does not delay him from continuing to improve Xiaomu.

However, after several days of simulation operations, Li Xiang discovered a problem. The computing power of his workstation was still too weak to support the learning of stock models.

You know, there are so many stocks in the stock market, and it is too far-fetched to conduct simulated trading on his workbench.

When the data is relatively large, it will freeze and then restart.

According to this situation, let alone a month, even a year, this model may not be completed.

"What should I do? Is the plan going to be aborted?"

If the model cannot be completed, his plan to make money from stocks will be aborted. Should he use this 100 million to continue to buy chips and expand?
Li Xiang rejected this idea instantly.

The more than 100 million yuan was the decoration money given to him by Lin Feifei. He could not misappropriate it. If Lin Feifei found out, she would definitely be angry.Besides, if you spend 100 million on a chip, you can only buy it for [-] or [-] yuan, which is not enough. What can you do when the time comes?
"Let's do this first."

The computing power of the workstation is not enough, making it difficult to complete the deduction and learning of the model. Li Xiang has to put down this money-making plan first, and then pick it up later when conditions permit.

In this regard, Li Xiang feels that it is a pity, but he does not have a workstation with superior computing power.

"I wish I had a supercomputer."

At this time, Li Xiang was very envious of the research institute for being able to apply for permission to use a supercomputer, which was great for project research.

But a supercomputer can easily cost tens of millions or hundreds of millions. Li Xiang could only swallow his saliva. He couldn't afford it. He couldn't afford it at all.

Even if he sells him, he can't afford it.

Although he was eager to use the supercomputer in the institute, he was a painter, and there were strict permissions to use supercomputers, and he did not have this permission.

But what he didn't expect was that he would soon have the opportunity to contact a supercomputer.

This afternoon, Li Xiang was sitting in the studio and was continuing to paint. Xiaoqian brought the latest numbered head and took out the completed painting. At this time, he heard a quarrel outside.

"Xiaoqian, what happened outside?"

"Brother Li, there was a bug in the core program of the skull digital restoration model in the R&D department. No one could find it, so we started arguing."

"Oh? I'll go take a look."

After Li Xiang heard this, he immediately put down the pen and paper in his hand, got up and walked out.

"Eh?"

Qian Zhaoping looked at the skull specimen in his hand and didn't know what to say for a moment.

You are an expert in cranial reconstruction, so don’t ask me about the procedure.

Are you just going to see what's going on?Can the program heal itself?

Qian Zhaoping reluctantly put down his skull and followed out.

I saw two people arguing outside, while Professor Xiang was sitting in front of the computer, looking at the code, trying to find the bug in the program.

But judging from the frown on his face, it was obvious that he had not found the problem.

"Everyone be quiet. This is not a vegetable market. If you want to argue, go home and argue."

Professor Xiang would also be annoyed to death. Both of them were the backbone of the R&D department, and their technical abilities were impeccable. However, their design concepts were at odds with each other. Now that there was a problem with the system, the two began to argue.

As the person in charge of this project, he has to coordinate the relationship between the two on the one hand, and wipe their butts on the other.

Now that there is a problem with the core program of the skull digital restoration model, he has to come over to troubleshoot the problem bit by bit.

As a result, he was struggling here, quarreling over there, and his temper was rising.

When the two of them saw Professor Xiang getting angry, they stopped arguing and stood there quietly observing.

Li Xiang walked over quietly and stood aside to observe.

The development language of their program is the common Python, which is one of the most widely used programming languages ​​due to its simplicity and ease of use. It can be used seamlessly with data structures and other commonly used algorithms.

Based on its mature development language, many useful libraries of Python can be used in AI, such as Numpy for scientific computing capabilities, Scypy for advanced computing and Pybrain for machine learning.

It is most suitable to use it to develop a digital restoration model of the skull.

With his ability, he understood what the problem was just by looking behind Professor Xiang. There was a bug in their core program, which caused the program to run inconsistently. Once it reached that critical node, it would automatically crash. .

Soon, Professor Xiang also discovered this system bug while doing calculations. However, since this was a problem with the core program, if he wanted to solve it, he had to start over. But if he completely started over, the previous code would be gone. Written in vain.

He was thinking about whether there was a compromise to save development time.

"There is no other way. There is a problem with the core code and the logic is inconsistent. We can only redesign the underlying logic."

Li Xiang saw Professor Xiang's entanglement, but it was unsolvable, and the problem could not be solved by just making a choice.

"Oh? You also know the program?"

Hearing this voice, Professor Xiang looked up and found that it was Li Xiang's objection.

When he said this, he obviously saw the problem. Unexpectedly, he also knew programming.

Qian Zhaoping was sweating when he saw that Li Xiang dared to give Professor Xiang advice.

Didn’t you see that even the project development director was scolded just now?
When Professor Xiang was researching, the most annoying thing was someone interrupting his train of thought. Unexpectedly, Li Xiang dared to interrupt.

It has to be said that newborn calves are not afraid of tigers.

Perhaps Professor Xiang would not argue with Li Xiang because he was an expert in cranial reconstruction, but he would never allow him to speak casually here.

"Understand something. The core program seems to be logically self-consistent, but it is inconsistent and conflicts when running. It will get stuck and crash at every critical node. This is a problem with the underlying program design. It must be started over and the core structure must be re-architected. Programs can solve it, optimization alone cannot solve the core problem.”

"Li Xiang, why do you say there is something wrong with my procedure? Don't think that you know how to do cranial reconstruction and just point your fingers here. It's not your turn to make irresponsible remarks on the procedure."

The person who spoke was one of the two people who had just participated in the quarrel, and was also one of the directors of this project. The underlying core code of the skull digital restoration model program was developed by him and his team. Professor Xiang has not yet said anything. What, but it was completely rejected by Li Xiang, a layman, how could he accept it?

"Su Bohai, don't be unreasonable."

Seeing that the conflict was escalating, Professor Xiang immediately stood up. After scolding Su Bohai, he looked at Li Xiang: "Is there really no other way?"

Professor Xiang understood that this time the system bug was very hidden. Even Su Bohai, who developed it, did not find it. However, Li Xiang just stood behind him and followed him for a while to see the problem. He boldly guessed that maybe Li Xiang's computer programming Technology is not inferior to yourself.

But he still couldn't make up his mind immediately when it came to starting over.

"Professor Xiang, don't listen to what a layman says. This underlying logic was developed by our team. Please give us a little more time to optimize it."

Su Bohai didn't quite understand why Professor Xiang would easily believe Li Xiang's words. Is it because he was an expert in skull restoration?You can just point your fingers at will?

They had to tear everything down and start over again. You must know that in order to complete the underlying core logic code, a team coded the code for two months without sleep before completing it. Now it is too casual to say no to it.

"There is no way to continue optimizing. You have been optimizing this program for a day, and you don't even understand the fundamental problem. How to optimize it? Even if the optimization is forced, the foundation is not strong, and various problems will occur when it is run in the future. Li wanted to say Yes, this core code program still needs to be started over."

Professor Xiang seemed to have made up his mind and was ready to listen to Li Xiang and start over. (End of chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like