This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #lang racket | |
| (define/contract (reverse x) | |
| (-> exact-integer? exact-integer?) | |
| (cond ((= x 0) 0) | |
| ((< x 0) (- (reverse (- x)))) | |
| (else (let ((reduced-x (floor (/ x 10))) | |
| (digit (remainder (floor x) 10)) | |
| (z (expt 10 (round (log x 10))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/cgt-nn-rev6wip.ipynb b/cgt-nn-rev6wip.ipynb | |
| index 25792be..0b03781 100644 | |
| --- a/cgt-nn-rev6wip.ipynb | |
| +++ b/cgt-nn-rev6wip.ipynb | |
| @@ -910,45 +910,45 @@ | |
| " <td>...</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| - " <th>835</th>\n", | |
| - " <td>evaluate_RegularNetwork_2_p0.99_N9</td>\n", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import curses | |
| from curses import wrapper | |
| from typing import Any | |
| import torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| from cgtnnlib.datasets import breast_cancer_dataset, car_evaluation_dataset, student_performance_factors_dataset | |
| from cgtnnlib.AugmentedReLUNetwork import AugmentedReLUNetwork | |
| from cgtnnlib.RegularNetwork import RegularNetwork | |
| from cgtnnlib.training import train_model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <image id="489" name="EKF/9-page-00001.jpg" width="2482" height="1755"> | |
| <box label="QF" source="manual" occluded="0" xtl="1751.82" ytl="308.88" xbr="1783.53" ybr="357.04" z_order="0"> | |
| <attribute name="Полюсность">1</attribute> | |
| <attribute name="Description"></attribute> | |
| </box> | |
| <box label="KM" source="manual" occluded="0" xtl="1076.90" ytl="535.09" xbr="1121.10" ybr="577.20" z_order="0"> | |
| <attribute name="Description"></attribute> | |
| </box> | |
| <box label="QF" source="manual" occluded="0" xtl="565.16" ytl="314.63" xbr="598.63" ybr="366.31" z_order="0"> | |
| <attribute name="Полюсность">3</attribute> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| public extension UIImage { | |
| static var noiseAnimation: UIImage = { | |
| makeNoiseAnimation( | |
| size: CGSize(width: 226, height: 168), | |
| framesCount: 4, | |
| magnitude: 0.5, | |
| duration: 0.2 | |
| ) ?? UIImage() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Используется для декодирования объектов, которые могут принимать один из двух типов | |
| enum EitherDecodableEquatable< | |
| Left: Decodable & Equatable, | |
| Right: Decodable & Equatable | |
| >: Decodable, Equatable { | |
| case left(Left) | |
| case right(Right) | |
| init(from decoder: Decoder) throws { | |
| let container = try decoder.singleValueContainer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 0 SUBSYSTEM ALGORITHMICAL ; | |
| 0 1 AUTHOR J SMITH MALE 43 YO ; | |
| 0 2 COMPANY JCN COMPUTING ; | |
| 0 3 DEPARTMENT BUSINESS COMPUTING !BLANK! ; | |
| com 0 PUBLIC NOTE ^ ; | |
| com 1 PUBLIC NOTE DEPARTMENT REQUIRES THREE WORDS ; | |
| com 2 PUBLIC NOTE SO WE BLANK OUT THIRD WORD SEE ; | |
| com 3 PUBLIC NOTE OP MANUAL VOL 8 ; | |
| 1 0 BEGIN EXTERNALIZABLE OPERATION FACTORIAL ; | |
| 1 1 DECLARE FACTORIAL ACCEPTS INTEGRAL PARAM NAMED ≈n≈ ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- Control flow functions | |
| local function TypeCase(obj, fallthroughHandler) | |
| return function (args) | |
| for i = 1, #args, 2 do | |
| local signature, action = args[i], args[i + 1] | |
| local function doAction(o) | |
| if type(action) == 'function' then | |
| return action(o) | |
| else |