4월, 2017의 게시물 표시

[Deep learning] Gradient Descent Optimizer

이미지
https://icim.nims.re.kr/post/easyMath/70 알기 쉬운 산업수학 알기 쉬운 산업수학 Gradient Descent Optimizer 2017년 12월 13일(수) | 김민중 URL  (1) 주어진 목적함수  f f 의 최솟값(minimum)을 찾아가는 알고리즘으로 다음과 같은 방식으로 최솟값을 찾아간다. 초기값  x 0 x 0 을 임의로 설정, 적당한 Learning rate  α α  설정 n ≥ 0 n ≥ 0 인 정수에 대해서  x n + 1 x n + 1 은 다음과 같이 정의한다. x n + 1 : = x n − α ⋅ ∇ f ( x n ) x n + 1 := x n − α ⋅ ∇ f ( x n ) 주의사항 함수 f f 의 모양이 convex가 아닌 경우 global minimum이 아닌 local minimum으로  x n x n 이 수렴할 가능성이 있다. Learning rate  α α  값이 큰 경우 최솟값으로  x n x n 이 수렴하는 것이 아니라 발산할 수 있다. Learning rate  α α  값이 작은 경우 수렴하는 속도가 지나치게 느릴 수 있다. 방정식  2 ⋅ x = 10 2 ⋅ x = 10  의 근을 Gradient Descent를 이용해서 찾아보자. 목적함수  f ( x ) : = ( 10 − 2 x ) 2 f ( x ) := ( 10 − 2 x ) 2 으로 설정하겠다( f f 의 최솟값인 0이 되게 하는  x x 값이 우리가 원하는 방정식의 근이다). 초기값  x 0 = 0 x 0 = 0 , Learning rate  α = 0.05 α = 0.05 으로 설정 f ′ ( x ) = 4 ( 2 x − 10 ) f ′ ( x ) = 4 ( 2 x − 10 ) 이므로  x 1 x 1 은 다음과 같이 구할 수 있다. x 1 = x 0 − α ⋅ f ′ ( x 0 ) = 0 − 0.05 ⋅ ( − 40 ) = 2 x

IPhone Resolution from paintcode.com

이미지
<IPhone resolution> <Reference> Paintcode

IPhone Resolution

<Iphone resolution for app> iPhone 5 iPhone 6 iPhone 6 Plus Points 320 x 568 375 x 667 414 x 736 Scale factor 2x 2x 3x Pixels 640 x 1136 750 x 1334 1242 x 2208 Pixels per inch (PPI) 326 326 401 <Reference> https://www.createful.com/2014/designing-new-iphone-screen-resolutions/

How To Create Custom Shortcuts For Pixelmator.

<Problem> How To Create Custom Shortcuts For Pixelmator <Solution> 1. Check  pixelmator's menu name. ( For example : Export... ) 2. Open systempreference -> Keyboard -> Shortcuts -> App shortcuts 3. Hit the + sign -> show up a dialog box 4. Application : Pixelmator     Menu name : Export...     Keyboard shortcut : what you want... ( ex> Cmd + E ) 5. Close systempreference  and restart pixelmator. <Reference> http://www.pixelmatortemplates.com/pixelmator-tip-37-how-to-create-custom-shortcuts-for-pixelmator/

MagicaVoxel black screen

<Error> When you run magicavoxel that it only gives you a black screen. <Solution> if you get black screen on MacOS, try this: extract the whole folder (go to the "MagicaVoxel" applications folder) move "MagicaVoxel-mac.app" outside the folder move "MagicaVoxel-mac.app" back to the folder again <Reference> raywenderich

How to add AdMob banner view with objective-c

This post is about guide adding admob banner. <Reference > 1. Firebase Banner ad guide 2. Firebase ad events 3. Stackoverflow link <Solution> 1. Header (.h) #import <UIKit/UIKit.h> #import "GADBannerViewDelegate.h" @class GADBannerView , GADRequest ; @interface AdTestViewController : UIViewController < GADBannerViewDelegate > { GADBannerView * bannerView_ ; } @property ( nonatomic , retain ) GADBannerView * bannerView ; - ( GADRequest *) createRequest ; @end 2, Implementation file (.mm) #import "AdTestViewController.h" #import "Constants.h" #import "GADBannerView.h" #import "GADRequest.h" @implementation AdTestViewController @synthesize bannerView = bannerView_ ; - ( void ) viewDidLoad { [ super viewDidLoad ]; // Create a view of the standard size at the top of the screen. // Available AdSize constants are explained in GADAdSize.h.

This action could not be completed. Try Again (-22421)

이미지
<Error Message> This action could not be completed. Try Again (-22421) <Solution> About this problem , below links says apple it's server problem. <Reference> http://stackoverflow.com/questions/35429801/this-action-could-not-be-completed-try-again-22421 <Screen shot>

"_OBJC_CLASS_$_FIRApp", referenced from:

<Error Message>   "_OBJC_CLASS_$_FIRApp", referenced from: <Solution> Xcode -> Build settings -> Other Linker Flags -> add $(inherited) Clean -> Build

@import' when modules are disabled

이미지
<Error Message> ......./RootViewController.h:13:1: Use of '@import' when modules are disabled [Solution] Xcode -> Build Settings -> Enable Modules -> Yes Xcode -> Build Settings -> Link Frameworks Automatically -> Yes Reference :  http://stackoverflow.com/questions/27479248/ios-use-of-import-when-modules-are-disabled-error

[Xcode] Apple Mach-O Linker (ld) Error Group . clang: error: linker command failed with exit code 1 (use -v to see invocation)

I met this error when i build old source code. I searched google and find a lot solutions but it is case by case. Let me write down the cases. Before then in my case , it was problem of  AD-networks which name is chartboost. 1. The first solution is remove old AD-networks or upgrade with new one. 2. Import missing in ".m" file. 3. Duplicated externs. 4.  Build Phases" -> "Compile Sources" click the button "Validate Settings"    ( In my case , the button is missing. [Version 8.3.1 (8E1000a)]  ) 5. It happend after c source append and remove.  ( his' solution was remade new project. ) 6. Duplicated define non-instance methods. 7.  If you want to change a value both in tow different class. Do remember to mark with static keywords. 8. If you use pod to install module then close project ->   pod update -> open project -> build. 9. Disable BitCode     Build settings -> search bitcode -> S

[Iphone][build error] pngcrush caught libpng error: PNG unsigned integer out of range.

이미지
When xcode build says " pngcrush caught libpng error: PNG unsigned integer out of range. " Reference : http://stackoverflow.com/questions/17531255/how-do-i-fix-this-copypng-file-error <In my case following solution works> Build Phases -> Copy Bundle Resources, Any fileName is red color? Or Convert Logo Retina.png or Create it again, maybe it's an encoding\format issue. Or Rename "Logo Retina.png" to "LogoRetina.png". Good luck~ share improve this answer edited  Jun 30 '15 at 10:07 Ted 5,122 3 27 45 answered  Jul 8 '13 at 17:28