| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This proto represents a machine learning model which is used to compute | 5 // This proto represents a machine learning model which is used to compute |
| 6 // the probability that a particular page visited by Chrome is phishing. | 6 // the probability that a particular page visited by Chrome is phishing. |
| 7 // | 7 // |
| 8 // Note: sine the machine learning model is trained on the server-side and then | 8 // Note: sine the machine learning model is trained on the server-side and then |
| 9 // downloaded onto the client it is important that this proto file stays in | 9 // downloaded onto the client it is important that this proto file stays in |
| 10 // sync with the server-side copy. Otherwise, the client may not be able to | 10 // sync with the server-side copy. Otherwise, the client may not be able to |
| 11 // parse the server generated model anymore. If you want to change this | 11 // parse the server generated model anymore. If you want to change this |
| 12 // protocol definition or you have questions regarding its format please contact | 12 // protocol definition or you have questions regarding its format please contact |
| 13 // chrome-anti-phishing@googlegroups.com. | 13 // chrome-anti-phishing@googlegroups.com. |
| 14 | 14 |
| 15 syntax = "proto2"; | 15 syntax = "proto2"; |
| 16 | 16 |
| 17 option optimize_for = LITE_RUNTIME; | |
| 18 | |
| 19 package safe_browsing; | 17 package safe_browsing; |
| 20 | 18 |
| 21 // This protocol buffer represents a machine learning model that is used in | 19 // This protocol buffer represents a machine learning model that is used in |
| 22 // client-side phishing detection (in Chrome). The client extracts a set | 20 // client-side phishing detection (in Chrome). The client extracts a set |
| 23 // of features from every website the user visits. Extracted features map | 21 // of features from every website the user visits. Extracted features map |
| 24 // feature names to floating point values (e.g., PageSecureLinksFreq -> 0.9). | 22 // feature names to floating point values (e.g., PageSecureLinksFreq -> 0.9). |
| 25 // | 23 // |
| 26 // To compute the phishing score (i.e., the probability that the website is | 24 // To compute the phishing score (i.e., the probability that the website is |
| 27 // phishing) a scorer will simply compute the sum of all rule scores for a | 25 // phishing) a scorer will simply compute the sum of all rule scores for a |
| 28 // given set of extracted features. The score of a particular rule corresponds | 26 // given set of extracted features. The score of a particular rule corresponds |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 required bytes prefix = 1; | 80 required bytes prefix = 1; |
| 83 | 81 |
| 84 // Network prefix size in bits. Default is an exact-host match. | 82 // Network prefix size in bits. Default is an exact-host match. |
| 85 optional int32 size = 2 [default = 128]; | 83 optional int32 size = 2 [default = 128]; |
| 86 }; | 84 }; |
| 87 repeated IPSubnet bad_subnet = 7; | 85 repeated IPSubnet bad_subnet = 7; |
| 88 | 86 |
| 89 // Murmur hash seed that was used to hash the page words. | 87 // Murmur hash seed that was used to hash the page words. |
| 90 optional fixed32 murmur_hash_seed = 8; | 88 optional fixed32 murmur_hash_seed = 8; |
| 91 } | 89 } |
| OLD | NEW |