Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Python
Python
  1. ตรวจสอบว่าตัวเลขสามารถแสดงบน 7-Segment LED ได้ภายในจำนวน LED ที่กำหนดหรือไม่ด้วย Python

    สมมติมีตัวเลข n และค่า c (จำนวน LED สูงสุดที่เปิดได้) ต้องตรวจสอบว่า n แสดงบน 7-Segment ได้หรือไม่ เช่น Input n = 315, c = 17 Output True เพราะ 315 ใช้ LED 12 ตัว (น้อยกว่า 17) ขั้นตอนแก้: seg = [6,2,5,5,4,5,6,3,7,6] (จำนวน LED สำหรับตัวเลข 0-9) แปลง n เป็น String วนรวม seg[digit] ถ้า led_count <

  2. ตรวจสอบว่าตัวเลขเป็น Palindrome ในฐานแปด (Octal) หรือไม่ด้วย Python

    สมมติมีตัวเลขที่อยู่ในรูป Octal หรือ Decimal ถ้าเป็น Octal ตรวจสอบ Palindrome ทันที ถ้าเป็น Decimal แปลงเป็น Octal ก่อนแล้วค่อยตรวจสอบ เช่น Input num = 178 Output True เพราะ 178 ไม่ใช่ Octal (มี 8) แปลงเป็น Octal ได้ 262 ซึ่งเป็น Palindrome ขั้นตอนแก้: Base = 8 ถ้าตัวเลขทุกหลัก < 8 มิฉะนั้น Base =

  3. ตรวจสอบว่าตัวเลขหนึ่งเป็น One's Complement ของอีกตัวหนึ่งหรือไม่ด้วย Python

    0) เช่น Input x = 9, y = 6 Output True เพราะ 9 = 1001, 6 = 0110 เป็น Complement กัน ขั้นตอนแก้: z = x XOR y Return True ถ้าบิตใน z เป็น 1 ทั้งหมด (z+1) & z == 0 ตัวอย่างโค้ด def all_one(n): if n == 0: return False if ((n + 1) & n) == 0: return True return False def so

  4. ตรวจสอบว่าผลคูณของ Array ที่ประกอบด้วยจำนวนเฉพาะ เป็น Perfect Square หรือไม่ด้วย Python

    สมมติมี Array nums ที่มีเฉพาะจำนวนเฉพาะ ต้องตรวจสอบว่าผลคูณของทุกตัวใน nums เป็น Perfect Square หรือไม่ เช่น Input nums = [3,3,7,7] Output True เพราะ 3*3*7*7 = 441 = 21^2 ขั้นตอนแก้: สร้าง Map m นับความถี่ของแต่ละตัวใน nums ถ้ามี Key ใดที่ความถี่เป็นคี่ Return False Return True ตัวอย่างโค้ด from

  5. ตรวจสอบว่าผลคูณของเลขหลักตำแหน่งคู่และคี่ เท่ากันหรือไม่ด้วย Python

    สมมติมีตัวเลข n ต้องตรวจสอบว่าผลคูณของเลขหลักตำแหน่งคี่ และตำแหน่งคู่ เท่ากันหรือไม่ เช่น Input n = 2364 Output True เพราะ ตำแหน่งคี่ (2*6=12) ตำแหน่งคู่ (3*4=12) เท่ากัน ขั้นตอนแก้: ถ้า num < 10 Return False odd_place = 1, even_place = 1 0: ดึงหลักสุดท้าย คูณ odd_place, num //= 10; ถ้า num == 0

  6. ตรวจสอบว่าผลคูณของ N จำนวนธรรมดาแรก หารด้วยผลรวมของมันลงตัวหรือไม่ด้วย Python

    สมมติมีตัวเลข n ต้องตรวจสอบว่า ผลคูณ (1*2*...*n) หารด้วย ผลรวม (1+2+...+n) ลงตัวหรือไม่ เช่น Input num = 5 Output True เพราะ 1*2*3*4*5 = 120 และ 1+2+3+4+5 = 15, 120 หาร 15 ลงตัว ขั้นตอนแก้: ถ้า num + 1 เป็นจำนวนเฉพาะ Return False Return True ตัวอย่างโค้ด 1: for i in range(2, num):

  7. ตรวจสอบว่า Element ใน Queue ติดกันเป็นคู่ Consecutive หรือไม่ด้วย Python

    สมมติมี Queue ที่เต็มไปด้วยตัวเลข ต้องตรวจสอบว่า Element ติดกันใน Queue เป็นคู่ Consecutive (ต่างกัน 1) หรือไม่ เช่น Input que = [3,4,6,7,8,9] Output จะเป็น True ขั้นตอนการแก้: สร้าง Queue q ใส่ Element ทั้งหมดจาก List ที่ให้มา สร้าง List temp While q ไม่ว่าง: นำ Element หน้าสุดของ Queue ใส่ temp

  8. วิธีใช้ TensorFlow สร้าง Convolutional Network 1 มิติ ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production มีเทคนิคเพิ่มประสิทธิภาพคำนวณ ใช้ NumPy และ Multi-dimensional Arrays (Tensors) รองรับ Deep Neural Networks สเกลได้ดี มี Dataset ยอดนิยม ใช้ GPU Computation จัดการ Resource อัตโนมัติ มี Libr

  9. วิธีใช้ TensorFlow Compile และ Fit โมเดลด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production มีเทคนิคเพิ่มประสิทธิภาพคำนวณ ใช้ NumPy และ Multi-dimensional Arrays (Tensors) รองรับ Deep Neural Network สเกลได้ดี มี Dataset ยอดนิยม ใช้ GPU Computation จัดการ Resource อัตโนมัติ มี Libra

  10. วิธีใช้ TensorFlow เปรียบเทียบ Linear Model และ Convolutional Model ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ มี 3 แอตทริบิวต์: Rank, Type, Shape Keras พัฒนาขึ้นในโ

  11. วิธีใช้ TensorFlow ประเมินโมเดลทั้งสองบน Test Data ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ ใช้ Google Colab รันโค้ด (Python บนเบราว์เซอร์ ฟรี GPU

  12. วิธีใช้ TensorFlow Export โมเดลที่สร้างขึ้นด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production มีเทคนิคเพิ่มประสิทธิภาพคำนวณ ใช้ NumPy และ Multi-dimensional Arrays (Tensors) รองรับ Deep Neural Network สเกลได้ดี มี Dataset ยอดนิยม ใช้ GPU Computation จัดการ Resource อัตโนมัติ มี Libra

  13. วิธีใช้ TensorFlow ทำนาย Score สำหรับทุก Label ของชุดข้อมูล Stack Overflow Questions ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production มีเทคนิคเพิ่มประสิทธิภาพคำนวณ ใช้ NumPy และ Multi-dimensional Arrays (Tensors) รองรับ Deep Neural Network ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน Tens

  14. วิธีใช้ TensorFlow ทดสอบประสิทธิภาพโมเดลกับชุดข้อมูล Stack Overflow Questions ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ ใช้ Google Colab รันโค้ด (Python บนเบราว์เซอร์ ฟรี GPU

  15. วิธีใช้ TensorFlow ดาวน์โหลดและสำรวจชุดข้อมูล Iliad ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ มี 3 แอตทริบิวต์: Rank, Type, Shape ใช้ชุดข้อมูล Iliad

  16. วิธีใช้ TensorFlow โหลดชุดข้อมูล Iliad ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ มี 3 แอตทริบิวต์: Rank (มิติ), Type (ชนิดข้อมูล), Shape (ขนาดแถว-คอลัมน์) ใช้ชุดข้อมูล Iliad (ข้อความแปล 3 ช

  17. วิธีสลับข้อมูลที่ Preprocessed แล้วด้วย TensorFlow และ Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production มีเทคนิคเพิ่มประสิทธิภาพคำนวณ ใช้ NumPy และ Multi-dimensional Arrays (Tensors) รองรับ Deep Neural Network ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน Tens

  18. วิธีเตรียมชุดข้อมูล Iliad สำหรับการฝึกโมเดลด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ ใช้ชุดข้อมูล Iliad (ข้อความแปล 3 ชิ้น) โมเดลระบุผู้แปล

  19. วิธีใช้ TensorFlow สร้าง Vocabulary จาก Token ของ Iliad ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production มีเทคนิคเพิ่มประสิทธิภาพคำนวณคณิตศาสตร์ซับซ้อน ใช้ NumPy และ Multi-dimensional Arrays (Tensors) รองรับ Deep Neural Networks Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย

  20. วิธีใช้ TensorFlow แปลง Token จาก Iliad เป็น Integer ด้วย Python

    TensorFlow เฟรมเวิร์ก ML จาก Google Open Source ใช้กับ Python อัลกอริทึม Deep Learning งานวิจัยและ Production ติดตั้ง tensorflow บน Windows: pip install tensorflow Tensor โครงสร้างข้อมูลใน TensorFlow (Data Flow Graph) เป็นอาร์เรย์หลายมิติ/ลิสต์ มี 3 แอตทริบิวต์: Rank (มิติ), Type (ชนิดข้อมูล), Shap

Total 9001 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:221/451  20-คอมพิวเตอร์/Page Goto:1 215 216 217 218 219 220 221 222 223 224 225 226 227