Tag Archives: ProgrammerAH

In machine learning, the prediction errors in sklearn, such as mean square error, etc

directory
1. Implementation of mean square deviation – using the module in Sklearn
2 Mean absolute error means absolute error


Sklearn contains a package for calculating errors, as shown in the code below
From FbProphet. Diagnostics Import Performance_metrics # this module is error calculation but has not been learned
Keras’s quick Start summary:


 
 
website
1. Implementation of mean square deviation – using the module in Sklearn

2 Mean absolute error means absolute error

Expected primary expression before ‘unsigned’ solution

statement result += unsigned int(1) < < i; can be compiled and run locally, but a compilation error appears after uploading to LeetCode: expected primary-expression before ‘unsigned’.
analysis:
statement is too complex, the compiler on LeetCode can not fully compile, need to add the basic expression.
solution:
1 for unsigned int add parentheses: (unsigned int).
2 add intermediate variable unsigned int one = 1; result += one < < I .

Cannot read configuration file due to insufficient permissions

HTTP Error 500.19 – Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information

Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\C:\Users\EricSun\Documents\Visual Studio 2010\WebSites\SSOAuthWebSite1\web.config
Requested URL http://10.2.5.153:10001/
Physical Path  
Logon Method Not yet determined
Logon User Not yet determined

Config Source

 -1:     0:  

Links and More InformationThis error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »

 
Cause: 1) not registering the. Net framework with iis (one of the causes: installed the. Net framework first, installed iis later)
2) Insufficient operation permission (Modify permission) for the site configured in IIS
Solution:
1) go to c :\Windows\Microsoft \ net \Framework64\v2.0.50727,
Reregister the.net framework: aspnet_regiis-i
with the iis command
2) IIS Manager –> Sites –> Corresponding site –& GT; Right click –> Edit Permissions – & gt; Security – & gt; Group or User Names –& GT; Edit – & gt; Add – & gt; Add the Everyone user who is granted Full Control permissions (essentially Modify permissions)

Reproduced in: https://www.cnblogs.com/Jian-Zhang/p/6054770.html

Solution of sidebyside error 59 / 32

looking at the event viewer, I found several of the same system errors every morning starting from February 1 (see figure) :




description:
event ID: 32
cannot be found affiliated assembly Microsoft. Vc80.mfcloc, the last error was that the reference assembly was not installed on the system.
event ID: 59
Resolve Partial Assembly is Microsoft. Vc80. MFCLOC failed. Reference error message: The reference assembly is not installed on the system.
event ID: 59
Generate Activation Context C: windowswinsxsx86_microsoft.vc80. mfc_1fc8b3b9a1e18e3b_8.50727.42 _x-ww_dec6ddd2mfc80u. Refer to error message: Operation completed successfully.
above is the description, on the Internet to look up relevant information, explain the poor, after the discovery of a good site,

http://www.eventid.net/display.asp?eventid=59& eventno=4228& source=SideBySide& phase=1

solution:
download vcredist_x86 installation, download address:

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn& FamilyID=32BC1BEE-A3F9-4C13-9C99-220B62A191EE
, after restart, the system log is normal, no error found.

postscript:
this error does not seem to affect the use of the operating system and software, found before the error, the computer performance is very good, all kinds of programs normal. When I checked the system log, I felt uncomfortable seeing the Red Cross, which immediately aroused my curiosity.

Reproduced in: https://blog.51cto.com/myhat/128176

During a paging operation

The computer is often dead, one or two minutes to recover, and shut down the symptoms of constant power.
System logs are roughly divided into two types of error reporting:
1.
Event ID: 51
Event Type: Warning
Event Source: Disk
Description: An error was detected on device \ device \Harddisk3\DR3 during a paging operation.(An error was detected on device \ device \Harddisk1\D during paging.)
2.

Event ID: 9
Event Type: Error
Event Source: NVGTS
Description:a parity Error was detected on device\ SCSI \nvgts1.(device\ device\ SCSI \nvgts1 did not respond within transmission wait time)
 
So tangled used for a long time, analysis should be Nvidia SATA Device driver problem, but others NV are no longer new driver, this Bug can not be Fixed.
Today I stumbled upon a method that seemed to work: go to the device manager and open the “disk drive” and close the write cache on the disk.

Under the “return-d” mode, the number of “return / return” is 1

When installing the software with apt-get, something like
install-info: No dir file specified; Try — help for more information. DPKG: error handling gettext (– configure) : subprocess post-installation script returns error number 1. In handling it, an error occurs:
findutils
E: sub-process /usr/bin/ DPKG returns an error code (1)
Sudo mv /var/lib/ DPKG/inf.bak // now rename info folder
sudo mkdir /var/lib/ DPKG /info // and create a new info folder
sudo apt-get update
// don’t explain it
apt-get-f install XXX
sudo mv /var/lib/ DPKG /info/* /var/lib/ DPKG /info.bak
// after the previous step will generate some files under the new info folder, Now all these files will be moved to the info. Bak folder
sudo rm-rf /var/lib/ DPKG /info/delete their newly created info folder
sudo mv /var/lib/ DPKG /info/bak /var/lib/ DPKG /info/change the previous info folder back to the name
until this problem is solved successfully
In general, the above method will solve the problem

Samba mount error (115): operation now in progress refer to the mount.cifs (8) manual page (e.g. ma

If you look at this error, you really can’t see any mistake: it says that the operation is in progress. Please refer to the user manual for details.
1. First determine if Samba is working
2. Whether ports 139 and 445 of the server are open
3, and then ping the IP address, found that the ping does not work, the original is my IP wrong

WIN7 + IIS7 Service Unavailable HTTP Error 503. The service is unavailable.

Open IIS on Windows 7 for website publishing.
However, after OPENING IIS, The default website cannot be opened, showing The Service Unavailable HTTP Error 503. The Service is Unavailable.

Open IIS and discover that the application pool has stopped. After startup, browse again, or not, the application pool will always stop itself.
 
When you open the Windows log, you can see the error message
Windows cannot find the local configuration file and is using a temporary configuration file to let you log in. Changes made to this configuration file are lost when you log out.

Baidu of, combine the plan that netizen provides next, change the setting of program pool.
IIS- Application pool – Advanced Settings – Process Model – identity. Change the built-in account to NetworkService


Ok, done.
Launch the application pool, browse the web page, and successfully see the IIS default page.

 
Used to apache, Nginx, now to toss iis really tired, always inexplicable problems. Ah…
Server system: Window Server 2008 R2
Here is my problem:
HTTP Error 503. The service is unavailable.”
Later found that the application pool opened, inexplicably stopped!!
Solutions:
Select the application pool used – & GT; Advanced Settings, find the “Identity” property in the “Process Model” bar, click the pop-up window, select “NetworkService” in the “Built-in Accounts”, ok, restart the application pool, restart the website.
Reference: http://blog.csdn.net/vivian8725118/article/details/18661683

Chrome failed to access MSDN home page. The specified CGI application encoded an error and the server terminated the

In late August and early September, pages accessing MSDN with Chrome returned The specified CGI Application error and The server process. The problem. But THERE’s nothing wrong with IE. At the beginning, I did not find the reason, so I was unable to browse MSDN with my beloved Chrome. You can only open a separate IE dedicated view. Don’t be so awkward.
Today, I saw a netizen wrote that his FF also had a problem. The solution was to empty the Cookie, so I tried it, and the problem was solved. But how to cause the root of the problem is not clear, if which net friend clear also hope to teach me.

Reproduced in: https://www.cnblogs.com/huting/archive/2011/09/10/2172991.html